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/include | |
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/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/gmmu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gmmu.h b/drivers/gpu/nvgpu/include/nvgpu/gmmu.h index da27e29c..aa110f18 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gmmu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gmmu.h | |||
@@ -251,11 +251,11 @@ void nvgpu_gmmu_unmap(struct vm_gk20a *vm, | |||
251 | struct nvgpu_mem *mem, | 251 | struct nvgpu_mem *mem, |
252 | u64 gpu_va); | 252 | u64 gpu_va); |
253 | 253 | ||
254 | int __nvgpu_pd_alloc(struct vm_gk20a *vm, struct nvgpu_gmmu_pd *pd, u32 bytes); | 254 | int nvgpu_pd_alloc(struct vm_gk20a *vm, struct nvgpu_gmmu_pd *pd, u32 bytes); |
255 | void __nvgpu_pd_free(struct vm_gk20a *vm, struct nvgpu_gmmu_pd *pd); | 255 | void nvgpu_pd_free(struct vm_gk20a *vm, struct nvgpu_gmmu_pd *pd); |
256 | int __nvgpu_pd_cache_alloc_direct(struct gk20a *g, | 256 | int nvgpu_pd_cache_alloc_direct(struct gk20a *g, |
257 | struct nvgpu_gmmu_pd *pd, u32 bytes); | 257 | struct nvgpu_gmmu_pd *pd, u32 bytes); |
258 | void __nvgpu_pd_cache_free_direct(struct gk20a *g, struct nvgpu_gmmu_pd *pd); | 258 | void nvgpu_pd_cache_free_direct(struct gk20a *g, struct nvgpu_gmmu_pd *pd); |
259 | int nvgpu_pd_cache_init(struct gk20a *g); | 259 | int nvgpu_pd_cache_init(struct gk20a *g); |
260 | void nvgpu_pd_cache_fini(struct gk20a *g); | 260 | void nvgpu_pd_cache_fini(struct gk20a *g); |
261 | 261 | ||