From 54b11a456cc5d9a13633b50c2bf167e0d5dafef5 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 20 Aug 2018 14:32:51 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1803351 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c') diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c index 9c487d6d..4057a599 100644 --- a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c @@ -130,10 +130,10 @@ void nvgpu_alloc_destroy(struct nvgpu_allocator *a) } #ifdef __KERNEL__ -void nvgpu_alloc_print_stats(struct nvgpu_allocator *__a, +void nvgpu_alloc_print_stats(struct nvgpu_allocator *na, struct seq_file *s, int lock) { - __a->ops->print_stats(__a, s, lock); + na->ops->print_stats(na, s, lock); } #endif -- cgit v1.2.2