From a75becab204e8af9e9f0b0939dad118b3e44b895 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 20 Aug 2018 14:35:29 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1803352 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/allocator.h b/drivers/gpu/nvgpu/include/nvgpu/allocator.h index d7a47d23..839712db 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/allocator.h +++ b/drivers/gpu/nvgpu/include/nvgpu/allocator.h @@ -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); -- cgit v1.2.2