summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-09-05 19:09:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-12 20:48:24 -0400
commit2c95becc9edf5e9ebfa392c4b6c3fbd0b9580f8d (patch)
treeacacafd7aef3db7b98245f144817895eb8b0ff09 /drivers/gpu/nvgpu/common/mm/gmmu.c
parentba2a632f039af2d13db9a0e4df9e34206116aef0 (diff)
gpu: nvgpu: Fix MISRA 21.2 violations (nvgpu_mem.c, mm.c)
MISRA 21.2 states that we may not use reserved identifiers; since all identifiers beginning with '_' are reserved by libc, the usage of '__' as a prefix is disallowed. Handle the 21.2 fixes for nvgpu_mem.c and mm.c; this deletes the '__' prefixes and slightly renames the __nvgpu_aperture_mask() function since there's a coherent version and a general version. Change-Id: Iee871ad90db3f2622f9099bd9992eb994e0fbf34 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813623 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 686d0e35..dbcc8ac2 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -720,7 +720,7 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm,
720 * correct based on the IO coherency flag. 720 * correct based on the IO coherency flag.
721 */ 721 */
722 if (attrs.coherent && attrs.aperture == APERTURE_SYSMEM) { 722 if (attrs.coherent && attrs.aperture == APERTURE_SYSMEM) {
723 attrs.aperture = __APERTURE_SYSMEM_COH; 723 attrs.aperture = APERTURE_SYSMEM_COH;
724 } 724 }
725 725
726 /* 726 /*