diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-08-20 17:32:51 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-22 20:33:26 -0400 |
commit | 54b11a456cc5d9a13633b50c2bf167e0d5dafef5 (patch) | |
tree | 517c565784775ad71072d07c626a3d248dcda215 /drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c | |
parent | 67e4f728eae290896ff69991e743328fc67b56e5 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | #ifdef __KERNEL__ | 132 | #ifdef __KERNEL__ |
133 | void nvgpu_alloc_print_stats(struct nvgpu_allocator *__a, | 133 | void nvgpu_alloc_print_stats(struct nvgpu_allocator *na, |
134 | struct seq_file *s, int lock) | 134 | struct seq_file *s, int lock) |
135 | { | 135 | { |
136 | __a->ops->print_stats(__a, s, lock); | 136 | na->ops->print_stats(na, s, lock); |
137 | } | 137 | } |
138 | #endif | 138 | #endif |
139 | 139 | ||