gpu: nvgpu: Fix MISRA 21.2 violations [1/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: I5a9b8a3e0602ba4d519ca19080951402b6f3287d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803351
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Alex Waterman
2018-08-20 14:32:51 -07:00
committed by mobile promotions
parent 67e4f728ea
commit 54b11a456c
4 changed files with 61 additions and 61 deletions

View File

@@ -216,7 +216,7 @@ int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
/*
* Bitmap initializers.
*/
int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
const char *name, u64 base, u64 length,
u64 blk_size, u64 flags);
@@ -232,7 +232,7 @@ int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
* Note: This allocator can only allocate fixed-size structures of a
* pre-defined size.
*/
int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
const char *name, u64 base, u64 length,
u64 struct_size, u64 flags);