From 7405f69ae2cb60a90885064533d8c9e95dd2de4d Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 5 Sep 2018 16:30:08 -0700 Subject: gpu: nvgpu: Fix MISRA 21.2 violations (pd_cache.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. Fixes for all the pd_cache functions that use '__' prefixes. This was trivial: the '__' prefix was simply deleted. JIRA NVGPU-1029 Change-Id: Ia91dabe3ef97fb17a2a85105935fb3a72d7c2c5e Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1813643 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/gmmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c') diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c index dbcc8ac2..e21ffd8d 100644 --- a/drivers/gpu/nvgpu/common/mm/gmmu.c +++ b/drivers/gpu/nvgpu/common/mm/gmmu.c @@ -200,7 +200,7 @@ int nvgpu_gmmu_init_page_table(struct vm_gk20a *vm) */ pdb_size = ALIGN(pd_size(&vm->mmu_levels[0], &attrs), PAGE_SIZE); - err = __nvgpu_pd_cache_alloc_direct(vm->mm->g, &vm->pdb, pdb_size); + err = nvgpu_pd_cache_alloc_direct(vm->mm->g, &vm->pdb, pdb_size); if (WARN_ON(err)) { return err; } @@ -277,7 +277,7 @@ static int pd_allocate(struct vm_gk20a *vm, return 0; } - err = __nvgpu_pd_alloc(vm, pd, pd_size(l, attrs)); + err = nvgpu_pd_alloc(vm, pd, pd_size(l, attrs)); if (err) { nvgpu_info(vm->mm->g, "error allocating page directory!"); return err; -- cgit v1.2.2