diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-08-20 17:36:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-22 20:33:39 -0400 |
commit | d5473e225decc74f0d6bb015d06365dad15828d0 (patch) | |
tree | 5358ae2cc67a7a4830328a902daca7549b2d6dc2 /drivers/gpu/nvgpu/include | |
parent | a75becab204e8af9e9f0b0939dad118b3e44b895 (diff) |
gpu: nvgpu: Fix MISRA 21.2 violations [3/3]
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.
This change removes the usage of the '__a' argument scattered
throughout the nvgpu allocator code.
JIRA NVGPU-1029
Change-Id: I553a66a3d7d2c6bb21ba0a45e29a1d01f7b89f49
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803353
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Adeel Raza <araza@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/allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/allocator.h b/drivers/gpu/nvgpu/include/nvgpu/allocator.h index 839712db..a38e8d51 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/allocator.h +++ b/drivers/gpu/nvgpu/include/nvgpu/allocator.h | |||
@@ -223,7 +223,7 @@ int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, | |||
223 | /* | 223 | /* |
224 | * Page allocator initializers. | 224 | * Page allocator initializers. |
225 | */ | 225 | */ |
226 | int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *a, | 226 | int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, |
227 | const char *name, u64 base, u64 length, | 227 | const char *name, u64 base, u64 length, |
228 | u64 blk_size, u64 flags); | 228 | u64 blk_size, u64 flags); |
229 | 229 | ||