diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2018-07-27 01:47:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-30 14:24:06 -0400 |
commit | 82a90170d3ecbed5106409546f33afa5eaea3ddf (patch) | |
tree | 11a9239c15d52fce7c903fe5c23db42be30f782b /drivers/gpu/nvgpu/common/bus | |
parent | 4cbec6b2c7f74f309fb4bc5d4981c42ae6ea3bcd (diff) |
gk20a: nvgpu: Remove io.h dependency from gk20a.h
In the current code, gk20a.h includes io.h which gets directly included
in a lot of other files. io.h contains methods which uses a struct
gk20a as a parameter leading to a circular dependency between io.h
and gk20a.h. This can be mitigated by removing io.h from gk20a.h as
part of larger effort to moving gk20a.h to nvgpu/gk20a.h
JIRA NVGPU-597
Change-Id: I93e504fa9371b88152737b342a75580c65e8f712
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1787316
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/bus')
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gm20b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gv100.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gk20a.c b/drivers/gpu/nvgpu/common/bus/bus_gk20a.c index d4ef41c1..d0091cee 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gk20a.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gk20a.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <nvgpu/log.h> | 23 | #include <nvgpu/log.h> |
24 | #include <nvgpu/soc.h> | 24 | #include <nvgpu/soc.h> |
25 | #include <nvgpu/mm.h> | 25 | #include <nvgpu/mm.h> |
26 | #include <nvgpu/io.h> | ||
26 | 27 | ||
27 | #include "gk20a/gk20a.h" | 28 | #include "gk20a/gk20a.h" |
28 | #include "bus_gk20a.h" | 29 | #include "bus_gk20a.h" |
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gm20b.c b/drivers/gpu/nvgpu/common/bus/bus_gm20b.c index 669cb0ae..d2c4c2b7 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gm20b.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gm20b.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <nvgpu/timers.h> | 25 | #include <nvgpu/timers.h> |
26 | #include <nvgpu/mm.h> | 26 | #include <nvgpu/mm.h> |
27 | #include <nvgpu/enabled.h> | 27 | #include <nvgpu/enabled.h> |
28 | #include <nvgpu/io.h> | ||
28 | 29 | ||
29 | #include "gk20a/gk20a.h" | 30 | #include "gk20a/gk20a.h" |
30 | #include "bus_gm20b.h" | 31 | #include "bus_gm20b.h" |
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gp10b.c b/drivers/gpu/nvgpu/common/bus/bus_gp10b.c index 86b548f2..11e60c53 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gp10b.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gp10b.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <nvgpu/timers.h> | 23 | #include <nvgpu/timers.h> |
24 | #include <nvgpu/mm.h> | 24 | #include <nvgpu/mm.h> |
25 | #include <nvgpu/io.h> | ||
25 | 26 | ||
26 | #include "bus_gp10b.h" | 27 | #include "bus_gp10b.h" |
27 | #include "gk20a/gk20a.h" | 28 | #include "gk20a/gk20a.h" |
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gv100.c b/drivers/gpu/nvgpu/common/bus/bus_gv100.c index 2aa15e67..eb0387e6 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gv100.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gv100.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <nvgpu/timers.h> | 23 | #include <nvgpu/timers.h> |
24 | #include <nvgpu/mm.h> | 24 | #include <nvgpu/mm.h> |
25 | #include <nvgpu/io.h> | ||
25 | 26 | ||
26 | #include "bus_gv100.h" | 27 | #include "bus_gv100.h" |
27 | #include "gk20a/gk20a.h" | 28 | #include "gk20a/gk20a.h" |