From 7755605dafcb438e23bdec7713500d6d4938c777 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Fri, 22 Sep 2017 12:05:24 +0530 Subject: gpu: nvgpu: fix coverity, Recursion in included headers - Fix recursion in included header, gk20a.h -> perf.h -> pstate.h -> gk20a.h - Removed "gk20a.h" from pstate.h but need to forward declare "struct gk20a" as referenced in header file. bug 200291879 Change-Id: I124c1c5cf4adcbd485de0800a73e0dc7f11fa92e Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master.nvidia.com/r/1566037 GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/pstate/pstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/pstate') diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h index 4a3899a9..17dbd476 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.h +++ b/drivers/gpu/nvgpu/pstate/pstate.h @@ -24,7 +24,6 @@ #ifndef __PSTATE_H__ #define __PSTATE_H__ -#include "gk20a/gk20a.h" #include "clk/clk.h" #define CTRL_PERF_PSTATE_TYPE_3X 0x3 @@ -35,6 +34,8 @@ #define CLK_SET_INFO_MAX_SIZE (32) +struct gk20a; + struct clk_set_info { enum nv_pmu_clk_clkwhich clkwhich; u32 nominal_mhz; -- cgit v1.2.2