diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-31 16:11:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-03 17:04:10 -0400 |
commit | f116320137b0eb835bcbf704d34fc8f7880595d2 (patch) | |
tree | 394e1f1b2a7d80dddcc2f2462091789458b59261 /drivers/gpu/nvgpu/gk20a | |
parent | 2119213467a9e70a7e6cbf78d9b8954b27898716 (diff) |
gpu: nvgpu: Add wrapper for linux/types.h
Add wrapper header nvgpu/types.h. It checks if build is for Linux
kernel and pulls in linux/types.h.
Delete also all #includes for linux/types.h which are not strictly
necessary, and change the remaining ones to use the new wrapper.
JIRA NVGPU-13
Change-Id: I1ddfef0b0b9d840e3e41a62f69c7cb9148d2d5fa
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1453371
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fb_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mc_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.h | 1 |
7 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h index c3136023..8b1f85a1 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | |||
@@ -18,8 +18,6 @@ | |||
18 | #ifndef _GK20A_CHANNEL_SYNC_H_ | 18 | #ifndef _GK20A_CHANNEL_SYNC_H_ |
19 | #define _GK20A_CHANNEL_SYNC_H_ | 19 | #define _GK20A_CHANNEL_SYNC_H_ |
20 | 20 | ||
21 | #include <linux/types.h> | ||
22 | |||
23 | struct gk20a_channel_sync; | 21 | struct gk20a_channel_sync; |
24 | struct priv_cmd_entry; | 22 | struct priv_cmd_entry; |
25 | struct channel_gk20a; | 23 | struct channel_gk20a; |
diff --git a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c index 28dfee01..44f0ac4c 100644 --- a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/types.h> | ||
17 | #include <trace/events/gk20a.h> | 16 | #include <trace/events/gk20a.h> |
18 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
19 | 18 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 9d9fde85..fccf0c27 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -17,7 +17,6 @@ | |||
17 | #ifndef _GK20A_FENCE_H_ | 17 | #ifndef _GK20A_FENCE_H_ |
18 | #define _GK20A_FENCE_H_ | 18 | #define _GK20A_FENCE_H_ |
19 | 19 | ||
20 | #include <linux/types.h> | ||
21 | #include <linux/kref.h> | 20 | #include <linux/kref.h> |
22 | #include <linux/wait.h> | 21 | #include <linux/wait.h> |
23 | 22 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c b/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c index dc1c0afb..e218ce94 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #ifndef __gk20a_gating_reglist_h__ | 20 | #ifndef __gk20a_gating_reglist_h__ |
21 | #define __gk20a_gating_reglist_h__ | 21 | #define __gk20a_gating_reglist_h__ |
22 | 22 | ||
23 | #include <linux/types.h> | ||
24 | #include "gk20a_gating_reglist.h" | 23 | #include "gk20a_gating_reglist.h" |
25 | 24 | ||
26 | struct gating_desc { | 25 | struct gating_desc { |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index aabe673a..5c1350d3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <linux/devfreq.h> | 19 | #include <linux/devfreq.h> |
20 | #include <linux/debugfs.h> | 20 | #include <linux/debugfs.h> |
21 | #include <linux/types.h> | ||
22 | #include <linux/export.h> | 21 | #include <linux/export.h> |
23 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
24 | #include <soc/tegra/chip-id.h> | 23 | #include <soc/tegra/chip-id.h> |
diff --git a/drivers/gpu/nvgpu/gk20a/mc_gk20a.c b/drivers/gpu/nvgpu/gk20a/mc_gk20a.c index de90355d..18fd3648 100644 --- a/drivers/gpu/nvgpu/gk20a/mc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mc_gk20a.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
18 | #include <trace/events/gk20a.h> | 17 | #include <trace/events/gk20a.h> |
19 | 18 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/sync_gk20a.h index 5dcdfe15..33112bb3 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.h | |||
@@ -18,7 +18,6 @@ | |||
18 | #ifndef _GK20A_SYNC_H_ | 18 | #ifndef _GK20A_SYNC_H_ |
19 | #define _GK20A_SYNC_H_ | 19 | #define _GK20A_SYNC_H_ |
20 | 20 | ||
21 | #include <linux/types.h> | ||
22 | #include <linux/version.h> | 21 | #include <linux/version.h> |
23 | 22 | ||
24 | struct sync_timeline; | 23 | struct sync_timeline; |