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:
Scott Long
2019-07-26 15:00:51 -07:00
committed by mobile promotions
parent dcf69b903b
commit c6b6c9b3e2

View File

@@ -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);