diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-09-22 02:35:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-27 17:17:49 -0400 |
commit | 7755605dafcb438e23bdec7713500d6d4938c777 (patch) | |
tree | 7ddd8d2bfee2fb001b3748bf00599f64994ae425 /drivers/gpu/nvgpu/pstate | |
parent | adf4b33c3b438638853c63b5f076d1a2b2176c90 (diff) |
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 <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1566037
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
24 | #ifndef __PSTATE_H__ | 24 | #ifndef __PSTATE_H__ |
25 | #define __PSTATE_H__ | 25 | #define __PSTATE_H__ |
26 | 26 | ||
27 | #include "gk20a/gk20a.h" | ||
28 | #include "clk/clk.h" | 27 | #include "clk/clk.h" |
29 | 28 | ||
30 | #define CTRL_PERF_PSTATE_TYPE_3X 0x3 | 29 | #define CTRL_PERF_PSTATE_TYPE_3X 0x3 |
@@ -35,6 +34,8 @@ | |||
35 | 34 | ||
36 | #define CLK_SET_INFO_MAX_SIZE (32) | 35 | #define CLK_SET_INFO_MAX_SIZE (32) |
37 | 36 | ||
37 | struct gk20a; | ||
38 | |||
38 | struct clk_set_info { | 39 | struct clk_set_info { |
39 | enum nv_pmu_clk_clkwhich clkwhich; | 40 | enum nv_pmu_clk_clkwhich clkwhich; |
40 | u32 nominal_mhz; | 41 | u32 nominal_mhz; |