mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
67e4f728ea
commit
54b11a456c
@@ -216,7 +216,7 @@ int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
|
||||
/*
|
||||
* Bitmap initializers.
|
||||
*/
|
||||
int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
|
||||
int nvgpu_bitmap_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
|
||||
const char *name, u64 base, u64 length,
|
||||
u64 blk_size, u64 flags);
|
||||
|
||||
@@ -232,7 +232,7 @@ int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
|
||||
* Note: This allocator can only allocate fixed-size structures of a
|
||||
* pre-defined size.
|
||||
*/
|
||||
int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *a,
|
||||
int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
|
||||
const char *name, u64 base, u64 length,
|
||||
u64 struct_size, u64 flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user