summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-08-20 17:32:51 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-22 20:33:26 -0400
commit54b11a456cc5d9a13633b50c2bf167e0d5dafef5 (patch)
tree517c565784775ad71072d07c626a3d248dcda215 /drivers/gpu/nvgpu/include
parent67e4f728eae290896ff69991e743328fc67b56e5 (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/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/allocator.h b/drivers/gpu/nvgpu/include/nvgpu/allocator.h
index 2ff7e950..d7a47d23 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/allocator.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/allocator.h
@@ -216,7 +216,7 @@ int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
216/* 216/*
217 * Bitmap initializers. 217 * Bitmap initializers.
218 */ 218 */
219int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *a, 219int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
220 const char *name, u64 base, u64 length, 220 const char *name, u64 base, u64 length,
221 u64 blk_size, u64 flags); 221 u64 blk_size, u64 flags);
222 222
@@ -232,7 +232,7 @@ int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
232 * Note: This allocator can only allocate fixed-size structures of a 232 * Note: This allocator can only allocate fixed-size structures of a
233 * pre-defined size. 233 * pre-defined size.
234 */ 234 */
235int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *a, 235int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
236 const char *name, u64 base, u64 length, 236 const char *name, u64 base, u64 length,
237 u64 struct_size, u64 flags); 237 u64 struct_size, u64 flags);
238 238