summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-09-05 19:30:08 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-12 20:48:28 -0400
commit7405f69ae2cb60a90885064533d8c9e95dd2de4d (patch)
tree24b474ad5cc8750537b90270134b05c66e32bb7c /drivers/gpu/nvgpu/common/mm/gmmu.c
parent2c95becc9edf5e9ebfa392c4b6c3fbd0b9580f8d (diff)
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 <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813643 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit 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.c4
1 files changed, 2 insertions, 2 deletions
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)
200 */ 200 */
201 pdb_size = ALIGN(pd_size(&vm->mmu_levels[0], &attrs), PAGE_SIZE); 201 pdb_size = ALIGN(pd_size(&vm->mmu_levels[0], &attrs), PAGE_SIZE);
202 202
203 err = __nvgpu_pd_cache_alloc_direct(vm->mm->g, &vm->pdb, pdb_size); 203 err = nvgpu_pd_cache_alloc_direct(vm->mm->g, &vm->pdb, pdb_size);
204 if (WARN_ON(err)) { 204 if (WARN_ON(err)) {
205 return err; 205 return err;
206 } 206 }
@@ -277,7 +277,7 @@ static int pd_allocate(struct vm_gk20a *vm,
277 return 0; 277 return 0;
278 } 278 }
279 279
280 err = __nvgpu_pd_alloc(vm, pd, pd_size(l, attrs)); 280 err = nvgpu_pd_alloc(vm, pd, pd_size(l, attrs));
281 if (err) { 281 if (err) {
282 nvgpu_info(vm->mm->g, "error allocating page directory!"); 282 nvgpu_info(vm->mm->g, "error allocating page directory!");
283 return err; 283 return err;