From c1b66bc6a93eeecec1aea0e5bdf93397d0458823 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 22 Aug 2018 15:06:23 -0700 Subject: gpu: nvgpu: Fix some dma.[ch] MISRA violations This doesn't correspond to a specific rule; it just cleans up the violations introduced by http://git-master/r/1799807. JIRA NVGPU-990 Change-Id: Ia20af754da9ad60f81d58ba00bf781a8c441827b Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1804887 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/dma.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/dma.h b/drivers/gpu/nvgpu/include/nvgpu/dma.h index 6a13e577..cbb829b6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/dma.h +++ b/drivers/gpu/nvgpu/include/nvgpu/dma.h @@ -37,18 +37,18 @@ struct nvgpu_mem; * Don't create a virtual kernel mapping for the buffer but only allocate it; * this may save some resources. The buffer can be mapped later explicitly. */ -#define NVGPU_DMA_NO_KERNEL_MAPPING (1 << 0) +#define NVGPU_DMA_NO_KERNEL_MAPPING BIT32(0) /* * Don't allow building the buffer from individual pages but require a * physically contiguous block. */ -#define NVGPU_DMA_FORCE_CONTIGUOUS (1 << 1) +#define NVGPU_DMA_FORCE_CONTIGUOUS BIT32(1) /* * Make the mapping read-only. */ -#define NVGPU_DMA_READ_ONLY (1 << 2) +#define NVGPU_DMA_READ_ONLY BIT32(2) /** * nvgpu_iommuable - Check if GPU is behind IOMMU -- cgit v1.2.2