gpu: nvgpu: Fix MISRA 21.2 violations [2/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: Ic39213ab800e92c6815ce5b9deb22520aa6d0630
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803352
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:35:29 -07:00
committed by mobile promotions
parent 54b11a456c
commit a75becab20
2 changed files with 78 additions and 78 deletions

View File

@@ -205,11 +205,11 @@ static inline void alloc_unlock(struct nvgpu_allocator *a)
/*
* Buddy allocator specific initializers.
*/
int __nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
int __nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
struct vm_gk20a *vm, const char *name,
u64 base, u64 size, u64 blk_size,
u64 max_order, u64 flags);
int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
const char *name, u64 base, u64 size,
u64 blk_size, u64 flags);