mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: mm: remove misra rule 8.11 violations
Eliminate Advisory Rule 8.11 violations in gmmu_gk20a.h by removing extern declarations of gk20a_mm_levels_64k[] and gk20a_mm_levels_128k[]. Advisory Rule 8.11 states when an array with external linkage is declared, its size should be explicitly specified. Jira NVGPU-3178 Change-Id: I452a571e0561edbd9f8cd856775563587c201d40 Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2162273 GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> 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
dcf69b903b
commit
c6b6c9b3e2
@@ -28,15 +28,7 @@
|
||||
|
||||
struct gk20a;
|
||||
|
||||
/*
|
||||
* Must include the <nvgpu/gmmu.h> header directly since the compiler needs to
|
||||
* know the actual type before it declares an array (even if the size is not
|
||||
* technically known here.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NVGPU_HAL_NON_FUSA
|
||||
extern const struct gk20a_mmu_level gk20a_mm_levels_64k[];
|
||||
extern const struct gk20a_mmu_level gk20a_mm_levels_128k[];
|
||||
|
||||
const struct gk20a_mmu_level *gk20a_mm_get_mmu_levels(struct gk20a *g,
|
||||
u64 big_page_size);
|
||||
|
||||
Reference in New Issue
Block a user