summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-31 16:11:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-03 17:04:10 -0400
commitf116320137b0eb835bcbf704d34fc8f7880595d2 (patch)
tree394e1f1b2a7d80dddcc2f2462091789458b59261 /drivers/gpu/nvgpu/gp106
parent2119213467a9e70a7e6cbf78d9b8954b27898716 (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/gp106')
-rw-r--r--drivers/gpu/nvgpu/gp106/fb_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/gp106_gating_reglist.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c3
-rw-r--r--drivers/gpu/nvgpu/gp106/ltc_gp106.c2
4 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp106/fb_gp106.c b/drivers/gpu/nvgpu/gp106/fb_gp106.c
index 81c52677..b2e264cd 100644
--- a/drivers/gpu/nvgpu/gp106/fb_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/fb_gp106.c
@@ -11,7 +11,6 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include <linux/types.h>
15#include <linux/delay.h> 14#include <linux/delay.h>
16 15
17#include "gk20a/gk20a.h" 16#include "gk20a/gk20a.h"
diff --git a/drivers/gpu/nvgpu/gp106/gp106_gating_reglist.c b/drivers/gpu/nvgpu/gp106/gp106_gating_reglist.c
index 0b6b8beb..5f85f0bf 100644
--- a/drivers/gpu/nvgpu/gp106/gp106_gating_reglist.c
+++ b/drivers/gpu/nvgpu/gp106/gp106_gating_reglist.c
@@ -16,7 +16,6 @@
16#ifndef __gp106_gating_reglist_h__ 16#ifndef __gp106_gating_reglist_h__
17#define __gp106_gating_reglist_h__ 17#define __gp106_gating_reglist_h__
18 18
19#include <linux/types.h>
20#include "gp106_gating_reglist.h" 19#include "gp106_gating_reglist.h"
21 20
22struct gating_desc { 21struct gating_desc {
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index 80ec8525..e8ea2e8d 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -13,11 +13,8 @@
13 * more details. 13 * more details.
14 */ 14 */
15 15
16#include <linux/types.h>
17#include <linux/printk.h> 16#include <linux/printk.h>
18 17
19#include <linux/types.h>
20
21#include "gk20a/gk20a.h" 18#include "gk20a/gk20a.h"
22#include "gk20a/dbg_gpu_gk20a.h" 19#include "gk20a/dbg_gpu_gk20a.h"
23#include "gk20a/css_gr_gk20a.h" 20#include "gk20a/css_gr_gk20a.h"
diff --git a/drivers/gpu/nvgpu/gp106/ltc_gp106.c b/drivers/gpu/nvgpu/gp106/ltc_gp106.c
index b162ddb3..755e4b05 100644
--- a/drivers/gpu/nvgpu/gp106/ltc_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/ltc_gp106.c
@@ -11,8 +11,6 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include <linux/types.h>
15
16#include "gk20a/gk20a.h" 14#include "gk20a/gk20a.h"
17#include "gm20b/ltc_gm20b.h" 15#include "gm20b/ltc_gm20b.h"
18#include "gp10b/ltc_gp10b.h" 16#include "gp10b/ltc_gp10b.h"