From c6b6c9b3e28507ac071e7ad65fe38db6beb64cbd Mon Sep 17 00:00:00 2001 From: Scott Long Date: Fri, 26 Jul 2019 15:00:51 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2162273 GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Adeel Raza Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/hal/mm/gmmu/gmmu_gk20a.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/nvgpu/hal/mm/gmmu/gmmu_gk20a.h b/drivers/gpu/nvgpu/hal/mm/gmmu/gmmu_gk20a.h index 25b57223f..f8e146a72 100644 --- a/drivers/gpu/nvgpu/hal/mm/gmmu/gmmu_gk20a.h +++ b/drivers/gpu/nvgpu/hal/mm/gmmu/gmmu_gk20a.h @@ -28,15 +28,7 @@ struct gk20a; -/* - * Must include the 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);