[PATCH v7 18/22] dma-direct: select DMA address encoding from __DMA_ATTR_ALLOC_CC_SHARED
Jason Gunthorpe
jgg at ziepe.ca
Mon Jul 13 12:39:41 PDT 2026
> - *dma_handle = phys_to_dma_direct(dev, page_to_phys(page));
> + *dma_handle = phys_to_dma_direct(dev, page_to_phys(page),
> + !!(attrs & __DMA_ATTR_ALLOC_CC_SHARED));
The !! isn't needed when going through bool, the compiler does it
automatically.
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the linux-arm-kernel
mailing list