diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-04-18 06:08:19 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-19 15:16:36 -0400 |
commit | 15e9b433f3a33f4d68582d8eeabfcfd32db8c340 (patch) | |
tree | ec7af2192fb7d4822c6a867e140b40fb269b8d25 /drivers/gpu | |
parent | b5a857210ca07ac5f732d14e0147b70cbc2ba746 (diff) |
gpu: nvgpu: fix recursion in included headers
We have this recursion in headers as pointed
by Coverity
gk20a/gk20a.h" includes itself: gk20a.h -> clk.h -> clk_vin.h ->
boardobjgrp.h -> gk20a.h
Fix this by removing gk20a.h header from boardobjgrp.h
and declaring necessary structures
Also remove unused header pmu_gk20a.h from boardobjgrp.h
Coverity id : 2511592
Bug 200291879
Change-Id: I36b0bcc752d7c5d92ebe80bfc8f39d119526ae66
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1464637
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h index 6e16f9d2..a1138982 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h | |||
@@ -15,10 +15,9 @@ | |||
15 | #define _BOARDOBJGRP_H_ | 15 | #define _BOARDOBJGRP_H_ |
16 | 16 | ||
17 | struct boardobjgrp; | 17 | struct boardobjgrp; |
18 | struct gk20a; | ||
18 | 19 | ||
19 | /* ------------------------ Includes ----------------------------------------*/ | 20 | /* ------------------------ Includes ----------------------------------------*/ |
20 | #include "gk20a/gk20a.h" | ||
21 | #include "gk20a/pmu_gk20a.h" | ||
22 | #include "ctrl/ctrlboardobj.h" | 21 | #include "ctrl/ctrlboardobj.h" |
23 | #include "boardobj.h" | 22 | #include "boardobj.h" |
24 | #include "boardobjgrpmask.h" | 23 | #include "boardobjgrpmask.h" |