diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-11 05:16:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-12 09:24:27 -0400 |
commit | 677edcd6ec16298722b1402d92bd493e68bc0299 (patch) | |
tree | 11153be9483a2b5effb30f27c021f2f6a080ea71 /drivers/gpu/nvgpu | |
parent | cf143b6b7cbda7f43f6368d89672d241bc40e847 (diff) |
gpu: nvgpu: fix recursion in included headers from boardobjgrp_e32.h
We have this recursion in headers as pointed
by Coverity
gk20a/gk20a.h" includes itself: gk20a.h -> clk.h -> clk_vin.h ->
boardobjgrp_e32.h -> gk20a.h
Fix this by removing gk20a.h header from boardobjgrp_e32.h
Also remove unused header gk20a.h from boardobjgrp_e255.h too
Coverity id : 2513065
Bug 200291879
Change-Id: I4bee04f064dfb8b02026de9b5a07429b1f48d0a0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1479883
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h index fdb37cae..059b224d 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -14,7 +14,6 @@ | |||
14 | #ifndef _BOARDOBJGRP_E255_H_ | 14 | #ifndef _BOARDOBJGRP_E255_H_ |
15 | #define _BOARDOBJGRP_E255_H_ | 15 | #define _BOARDOBJGRP_E255_H_ |
16 | 16 | ||
17 | #include "gk20a/gk20a.h" | ||
18 | #include "gk20a/pmu_gk20a.h" | 17 | #include "gk20a/pmu_gk20a.h" |
19 | #include "ctrl/ctrlboardobj.h" | 18 | #include "ctrl/ctrlboardobj.h" |
20 | #include "boardobj.h" | 19 | #include "boardobj.h" |
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h index 3f8e93f9..fb114024 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -14,7 +14,6 @@ | |||
14 | #ifndef _BOARDOBJGRP_E32_H_ | 14 | #ifndef _BOARDOBJGRP_E32_H_ |
15 | #define _BOARDOBJGRP_E32_H_ | 15 | #define _BOARDOBJGRP_E32_H_ |
16 | 16 | ||
17 | #include "gk20a/gk20a.h" | ||
18 | #include "gk20a/pmu_gk20a.h" | 17 | #include "gk20a/pmu_gk20a.h" |
19 | #include "ctrl/ctrlboardobj.h" | 18 | #include "ctrl/ctrlboardobj.h" |
20 | #include "boardobj.h" | 19 | #include "boardobj.h" |