diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-09-05 19:30:08 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-12 20:48:28 -0400 |
commit | 7405f69ae2cb60a90885064533d8c9e95dd2de4d (patch) | |
tree | 24b474ad5cc8750537b90270134b05c66e32bb7c /drivers/gpu/nvgpu/common/mm/vm.c | |
parent | 2c95becc9edf5e9ebfa392c4b6c3fbd0b9580f8d (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/vm.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index 27667f34..17e49969 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -90,7 +90,7 @@ static void __nvgpu_vm_free_entries(struct vm_gk20a *vm, | |||
90 | int i; | 90 | int i; |
91 | 91 | ||
92 | if (pd->mem) { | 92 | if (pd->mem) { |
93 | __nvgpu_pd_free(vm, pd); | 93 | nvgpu_pd_free(vm, pd); |
94 | pd->mem = NULL; | 94 | pd->mem = NULL; |
95 | } | 95 | } |
96 | 96 | ||
@@ -110,7 +110,7 @@ static void nvgpu_vm_free_entries(struct vm_gk20a *vm, | |||
110 | struct gk20a *g = vm->mm->g; | 110 | struct gk20a *g = vm->mm->g; |
111 | int i; | 111 | int i; |
112 | 112 | ||
113 | __nvgpu_pd_cache_free_direct(g, pdb); | 113 | nvgpu_pd_cache_free_direct(g, pdb); |
114 | 114 | ||
115 | if (!pdb->entries) { | 115 | if (!pdb->entries) { |
116 | return; | 116 | return; |
@@ -522,7 +522,7 @@ clean_up_allocators: | |||
522 | } | 522 | } |
523 | clean_up_page_tables: | 523 | clean_up_page_tables: |
524 | /* Cleans up nvgpu_gmmu_init_page_table() */ | 524 | /* Cleans up nvgpu_gmmu_init_page_table() */ |
525 | __nvgpu_pd_cache_free_direct(g, &vm->pdb); | 525 | nvgpu_pd_cache_free_direct(g, &vm->pdb); |
526 | clean_up_vgpu_vm: | 526 | clean_up_vgpu_vm: |
527 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | 527 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION |
528 | if (g->is_virtual) | 528 | if (g->is_virtual) |