From f116320137b0eb835bcbf704d34fc8f7880595d2 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 31 Mar 2017 13:11:29 -0700 Subject: 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 Reviewed-on: http://git-master/r/1453371 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/fb_gp10b.c | 2 -- drivers/gpu/nvgpu/gp10b/fifo_gp10b.c | 1 - drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c | 1 - drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 2 -- drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 2 -- drivers/gpu/nvgpu/gp10b/mc_gp10b.c | 2 -- 6 files changed, 10 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b') diff --git a/drivers/gpu/nvgpu/gp10b/fb_gp10b.c b/drivers/gpu/nvgpu/gp10b/fb_gp10b.c index db4716f3..aa6b543a 100644 --- a/drivers/gpu/nvgpu/gp10b/fb_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fb_gp10b.c @@ -13,8 +13,6 @@ * more details. */ -#include - #include "gk20a/gk20a.h" #include "gm20b/fb_gm20b.h" #include "gk20a/kind_gk20a.h" diff --git a/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c index 6f576e3f..6f1a0298 100644 --- a/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c @@ -14,7 +14,6 @@ */ #include -#include #include "fifo_gp10b.h" diff --git a/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c b/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c index 563819de..afb933e9 100644 --- a/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c +++ b/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c @@ -20,7 +20,6 @@ #ifndef __gp10b_gating_reglist_h__ #define __gp10b_gating_reglist_h__ -#include #include "gp10b_gating_reglist.h" struct gating_desc { diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index fc1168f5..95fdccea 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c @@ -13,10 +13,8 @@ * more details. */ -#include #include #include -#include #include "gk20a/gk20a.h" #include "gk20a/dbg_gpu_gk20a.h" diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index 9a11d90b..e1aa34a9 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c @@ -13,8 +13,6 @@ * more details. */ -#include - #include #include "gk20a/gk20a.h" diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c index 4a8dc4c1..5842cb62 100644 --- a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c @@ -13,8 +13,6 @@ * more details. */ -#include - #include "gk20a/gk20a.h" #include "gk20a/mc_gk20a.h" -- cgit v1.2.2