diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-08-20 17:35:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-22 20:33:35 -0400 |
commit | a75becab204e8af9e9f0b0939dad118b3e44b895 (patch) | |
tree | 2a5ceef8293b9f5d73cf42451700457d410fcda0 /drivers/gpu/nvgpu/include | |
parent | 54b11a456cc5d9a13633b50c2bf167e0d5dafef5 (diff) |
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 <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1803352
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.h | 4 |
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 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) | |||
205 | /* | 205 | /* |
206 | * Buddy allocator specific initializers. | 206 | * Buddy allocator specific initializers. |
207 | */ | 207 | */ |
208 | int __nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a, | 208 | int __nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, |
209 | struct vm_gk20a *vm, const char *name, | 209 | struct vm_gk20a *vm, const char *name, |
210 | u64 base, u64 size, u64 blk_size, | 210 | u64 base, u64 size, u64 blk_size, |
211 | u64 max_order, u64 flags); | 211 | u64 max_order, u64 flags); |
212 | int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *a, | 212 | int nvgpu_buddy_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, |
213 | const char *name, u64 base, u64 size, | 213 | const char *name, u64 base, u64 size, |
214 | u64 blk_size, u64 flags); | 214 | u64 blk_size, u64 flags); |
215 | 215 | ||