From 0f81c5616b04dea9772f490636d0a1959a42774e Mon Sep 17 00:00:00 2001 From: Vinod G Date: Fri, 18 May 2018 16:38:55 -0700 Subject: gpu: nvgpu: Code updates for MISRA violations Regenerated the gating_reglist.c files for various chips after fixing the script for MISRA C-2012 violations Rule 15.5: Multiple points of exit detected Rule 15.6: "if" body without compound statement Rule 10.3: Implicit conversions of 64bit to 32bit int Rule 7.2: Const must be declared with "U" Rule 5.7: Tags with name xxx already declared Add preprocessor conditional gaurds in gating_reglist header files JIRA NVGPU-671 JIRA NVGPU-656 JIRA NVGPU-688 JIRA NVGPU-686 JIRA NVGPU-644 Change-Id: Ie5a688cb8c39f072d2a15d86fb0ee0f2039a2cf1 Signed-off-by: Vinod G Reviewed-on: https://git-master.nvidia.com/r/1724444 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h') diff --git a/drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h b/drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h index fa231d26..279bc4d2 100644 --- a/drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h +++ b/drivers/gpu/nvgpu/common/clock_gating/gv100_gating_reglist.h @@ -20,7 +20,10 @@ * DEALINGS IN THE SOFTWARE. */ -#include "gk20a/gk20a.h" +#ifndef GV100_GATING_REGLIST_H +#define GV100_GATING_REGLIST_H + +struct gk20a; void gv100_slcg_bus_load_gating_prod(struct gk20a *g, bool prod); @@ -96,4 +99,4 @@ void gv100_blcg_xbar_load_gating_prod(struct gk20a *g, void gr_gv100_pg_gr_load_gating_prod(struct gk20a *g, bool prod); - +#endif /* GV100_GATING_REGLIST_H */ -- cgit v1.2.2