summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-11 14:39:21 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-12 10:01:12 -0400
commit7665421874e66f0b00d52a5f1db5210895a9ab7b (patch)
tree039b5523ae1b44330c1d37bae145daf855714b2e
parentfb1f604f41435a206b866fba87d36bbc3e9ae474 (diff)
gpu: nvgpu: Replace use of bitops.h and kernel.h
Remove use of linux/kernel.h and linux/compiler.h. We don't use anything in those headers. Also replace use of linux/bitops.h with new wrapper nvgpu/bitops.h. JIRA NVGPU-13 Change-Id: Iefa6b4598d5a5e7fc386c0a7a554e778a87010d6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1460777 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/clk/clk_arb.c3
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c2
-rw-r--r--drivers/gpu/nvgpu/common/linux/kmem.c1
-rw-r--r--drivers/gpu/nvgpu/common/mm/bitmap_allocator.c4
-rw-r--r--drivers/gpu/nvgpu/common/mm/buddy_allocator.c2
-rw-r--r--drivers/gpu/nvgpu/common/mm/lockless_allocator.c1
-rw-r--r--drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c2
-rw-r--r--drivers/gpu/nvgpu/common/mm/page_allocator.c3
-rw-r--r--drivers/gpu/nvgpu/gk20a/bus_gk20a.h2
-rw-r--r--drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c1
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.h2
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal_gk20a.h2
-rw-r--r--drivers/gpu/nvgpu/gk20a/kind_gk20a.c6
-rw-r--r--drivers/gpu/nvgpu/gk20a/kind_gk20a.h1
-rw-r--r--drivers/gpu/nvgpu/gk20a/ltc_gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/gk20a/sync_gk20a.c1
-rw-r--r--drivers/gpu/nvgpu/gp106/xve_gp106.c1
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/bitops.h20
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/log.h3
-rw-r--r--drivers/gpu/nvgpu/vgpu/css_vgpu.c2
-rw-r--r--drivers/gpu/nvgpu/vgpu/gk20a/vgpu_gr_gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c2
-rw-r--r--drivers/gpu/nvgpu/vgpu/sysfs_vgpu.c1
-rw-r--r--drivers/gpu/nvgpu/vgpu/tsg_vgpu.c1
-rw-r--r--include/linux/tegra_vgpu.h2
26 files changed, 34 insertions, 37 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c
index 85a5018d..3625706c 100644
--- a/drivers/gpu/nvgpu/clk/clk_arb.c
+++ b/drivers/gpu/nvgpu/clk/clk_arb.c
@@ -15,14 +15,13 @@
15#include <linux/cdev.h> 15#include <linux/cdev.h>
16#include <linux/file.h> 16#include <linux/file.h>
17#include <linux/anon_inodes.h> 17#include <linux/anon_inodes.h>
18#include <linux/nvgpu.h>
19#include <linux/bitops.h>
20#include <linux/rculist.h> 18#include <linux/rculist.h>
21#include <linux/llist.h> 19#include <linux/llist.h>
22#include <linux/uaccess.h> 20#include <linux/uaccess.h>
23#include <linux/poll.h> 21#include <linux/poll.h>
24#include <linux/atomic.h> 22#include <linux/atomic.h>
25 23
24#include <nvgpu/bitops.h>
26#include <nvgpu/lock.h> 25#include <nvgpu/lock.h>
27#include <nvgpu/kmem.h> 26#include <nvgpu/kmem.h>
28 27
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index ce9a4176..c0976aa2 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -18,9 +18,9 @@
18#include <linux/cdev.h> 18#include <linux/cdev.h>
19#include <linux/file.h> 19#include <linux/file.h>
20#include <linux/anon_inodes.h> 20#include <linux/anon_inodes.h>
21#include <linux/bitops.h>
22#include <uapi/linux/nvgpu.h> 21#include <uapi/linux/nvgpu.h>
23 22
23#include <nvgpu/bitops.h>
24#include <nvgpu/kmem.h> 24#include <nvgpu/kmem.h>
25 25
26#include "ioctl_ctrl.h" 26#include "ioctl_ctrl.h"
diff --git a/drivers/gpu/nvgpu/common/linux/kmem.c b/drivers/gpu/nvgpu/common/linux/kmem.c
index 86484888..87aeb184 100644
--- a/drivers/gpu/nvgpu/common/linux/kmem.c
+++ b/drivers/gpu/nvgpu/common/linux/kmem.c
@@ -14,7 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h>
18#include <linux/mutex.h> 17#include <linux/mutex.h>
19#include <linux/slab.h> 18#include <linux/slab.h>
20#include <linux/atomic.h> 19#include <linux/atomic.h>
diff --git a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c
index b32da945..88051b38 100644
--- a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c
@@ -14,9 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h> 17#include <nvgpu/bitops.h>
18#include <linux/bitops.h>
19
20#include <nvgpu/allocator.h> 18#include <nvgpu/allocator.h>
21#include <nvgpu/kmem.h> 19#include <nvgpu/kmem.h>
22 20
diff --git a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
index 06cd7911..81f82c60 100644
--- a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
@@ -14,8 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h>
18
19#include <nvgpu/allocator.h> 17#include <nvgpu/allocator.h>
20#include <nvgpu/kmem.h> 18#include <nvgpu/kmem.h>
21 19
diff --git a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
index ed9dadd3..93c870b5 100644
--- a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
@@ -14,7 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h>
18#include <linux/atomic.h> 17#include <linux/atomic.h>
19 18
20#include <nvgpu/allocator.h> 19#include <nvgpu/allocator.h>
diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
index b8e713eb..b84855b5 100644
--- a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
@@ -16,8 +16,6 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include <linux/kernel.h>
20
21#include <nvgpu/allocator.h> 19#include <nvgpu/allocator.h>
22 20
23#include "gk20a/gk20a.h" 21#include "gk20a/gk20a.h"
diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c
index 1e5fae3d..41ce28a7 100644
--- a/drivers/gpu/nvgpu/common/mm/page_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c
@@ -14,10 +14,9 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h>
18#include <linux/bitops.h>
19#include <linux/mm.h> 17#include <linux/mm.h>
20 18
19#include <nvgpu/bitops.h>
21#include <nvgpu/allocator.h> 20#include <nvgpu/allocator.h>
22#include <nvgpu/page_allocator.h> 21#include <nvgpu/page_allocator.h>
23#include <nvgpu/kmem.h> 22#include <nvgpu/kmem.h>
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
index b2f8f8c9..72710c35 100644
--- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
@@ -16,6 +16,8 @@
16#ifndef BUS_GK20A_H 16#ifndef BUS_GK20A_H
17#define BUS_GK20A_H 17#define BUS_GK20A_H
18 18
19#include <nvgpu/types.h>
20
19struct gk20a; 21struct gk20a;
20struct gpu_ops; 22struct gpu_ops;
21struct nvgpu_mem; 23struct nvgpu_mem;
diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c
index 76237e03..48a60f5d 100644
--- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c
@@ -16,10 +16,10 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include <linux/bitops.h>
20#include <linux/dma-mapping.h> 19#include <linux/dma-mapping.h>
21#include <linux/dma-buf.h> 20#include <linux/dma-buf.h>
22 21
22#include <nvgpu/bitops.h>
23#include <nvgpu/kmem.h> 23#include <nvgpu/kmem.h>
24#include <nvgpu/lock.h> 24#include <nvgpu/lock.h>
25#include <nvgpu/dma.h> 25#include <nvgpu/dma.h>
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
index 4b3bb83c..4d5854d4 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
@@ -21,7 +21,6 @@
21#include <linux/version.h> 21#include <linux/version.h>
22#include <linux/device.h> 22#include <linux/device.h>
23#include <linux/pm_runtime.h> 23#include <linux/pm_runtime.h>
24#include <linux/kernel.h>
25#include <linux/fb.h> 24#include <linux/fb.h>
26#include <linux/gk20a.h> 25#include <linux/gk20a.h>
27#include <linux/clk/tegra.h> 26#include <linux/clk/tegra.h>
diff --git a/drivers/gpu/nvgpu/gk20a/hal.h b/drivers/gpu/nvgpu/gk20a/hal.h
index da02cf5f..4203dbfa 100644
--- a/drivers/gpu/nvgpu/gk20a/hal.h
+++ b/drivers/gpu/nvgpu/gk20a/hal.h
@@ -16,8 +16,6 @@
16#ifndef __HAL_GPU__ 16#ifndef __HAL_GPU__
17#define __HAL_GPU__ 17#define __HAL_GPU__
18 18
19#include <linux/kernel.h>
20
21struct gk20a; 19struct gk20a;
22 20
23int gpu_init_hal(struct gk20a *g); 21int gpu_init_hal(struct gk20a *g);
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.h b/drivers/gpu/nvgpu/gk20a/hal_gk20a.h
index f214432a..f5475809 100644
--- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.h
@@ -18,8 +18,6 @@
18#ifndef __HAL_GK20A__ 18#ifndef __HAL_GK20A__
19#define __HAL_GK20A__ 19#define __HAL_GK20A__
20 20
21#include <linux/kernel.h>
22
23struct gk20a; 21struct gk20a;
24 22
25int gk20a_init_hal(struct gk20a *g); 23int gk20a_init_hal(struct gk20a *g);
diff --git a/drivers/gpu/nvgpu/gk20a/kind_gk20a.c b/drivers/gpu/nvgpu/gk20a/kind_gk20a.c
index 00e7a54c..4e9ebe4b 100644
--- a/drivers/gpu/nvgpu/gk20a/kind_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/kind_gk20a.c
@@ -1,9 +1,7 @@
1/* 1/*
2 * drivers/video/tegra/host/gk20a/kind_gk20a.c
3 *
4 * GK20A memory kind management 2 * GK20A memory kind management
5 * 3 *
6 * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
7 * 5 *
8 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -18,8 +16,6 @@
18 * this program; if not, write to the Free Software Foundation, Inc., 16 * this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 17 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
20 */ 18 */
21#include <linux/bitops.h>
22#include <linux/compiler.h>
23 19
24#include "kind_gk20a.h" 20#include "kind_gk20a.h"
25 21
diff --git a/drivers/gpu/nvgpu/gk20a/kind_gk20a.h b/drivers/gpu/nvgpu/gk20a/kind_gk20a.h
index 93f011d4..9dec84a5 100644
--- a/drivers/gpu/nvgpu/gk20a/kind_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/kind_gk20a.h
@@ -21,6 +21,7 @@
21#ifndef __KIND_GK20A_H__ 21#ifndef __KIND_GK20A_H__
22#define __KIND_GK20A_H__ 22#define __KIND_GK20A_H__
23 23
24#include <nvgpu/bitops.h>
24 25
25void gk20a_init_uncompressed_kind_map(void); 26void gk20a_init_uncompressed_kind_map(void);
26void gk20a_init_kind_attr(void); 27void gk20a_init_kind_attr(void);
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
index f8416d55..0d4d62b8 100644
--- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
@@ -16,8 +16,6 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include <linux/kernel.h>
20
21#include <trace/events/gk20a.h> 19#include <trace/events/gk20a.h>
22#include <nvgpu/timers.h> 20#include <nvgpu/timers.h>
23#include <nvgpu/log.h> 21#include <nvgpu/log.h>
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c
index ecc96a7b..b5619db7 100644
--- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c
@@ -14,7 +14,6 @@
14 */ 14 */
15 15
16#include <linux/version.h> 16#include <linux/version.h>
17#include <linux/kernel.h>
18#include <linux/file.h> 17#include <linux/file.h>
19#include <linux/fs.h> 18#include <linux/fs.h>
20#include <linux/hrtimer.h> 19#include <linux/hrtimer.h>
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c
index 077409c5..b47097e2 100644
--- a/drivers/gpu/nvgpu/gp106/xve_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c
@@ -15,7 +15,6 @@
15 */ 15 */
16 16
17#include <linux/delay.h> 17#include <linux/delay.h>
18#include <linux/kernel.h>
19#include <linux/debugfs.h> 18#include <linux/debugfs.h>
20#include <linux/uaccess.h> 19#include <linux/uaccess.h>
21 20
diff --git a/drivers/gpu/nvgpu/include/nvgpu/bitops.h b/drivers/gpu/nvgpu/include/nvgpu/bitops.h
new file mode 100644
index 00000000..0cd297b6
--- /dev/null
+++ b/drivers/gpu/nvgpu/include/nvgpu/bitops.h
@@ -0,0 +1,20 @@
1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3 *
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,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13#ifndef __NVGPU_BITOPS_H__
14#define __NVGPU_BITOPS_H__
15
16#ifdef __KERNEL__
17#include <linux/bitops.h>
18#endif
19
20#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h
index f42fbedc..e16aaa92 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/log.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/log.h
@@ -17,6 +17,9 @@
17#ifndef __NVGPU_DEBUGGING_H__ 17#ifndef __NVGPU_DEBUGGING_H__
18#define __NVGPU_DEBUGGING_H__ 18#define __NVGPU_DEBUGGING_H__
19 19
20#include <nvgpu/types.h>
21#include <nvgpu/bitops.h>
22
20struct gk20a; 23struct gk20a;
21 24
22enum nvgpu_log_type { 25enum nvgpu_log_type {
diff --git a/drivers/gpu/nvgpu/vgpu/css_vgpu.c b/drivers/gpu/nvgpu/vgpu/css_vgpu.c
index 142d9ce1..cca8766b 100644
--- a/drivers/gpu/nvgpu/vgpu/css_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/css_vgpu.c
@@ -15,8 +15,6 @@
15 */ 15 */
16#if defined(CONFIG_GK20A_CYCLE_STATS) 16#if defined(CONFIG_GK20A_CYCLE_STATS)
17 17
18#include <linux/kernel.h>
19#include <linux/nvhost.h>
20#include <linux/tegra-ivc.h> 18#include <linux/tegra-ivc.h>
21#include <linux/tegra_vgpu.h> 19#include <linux/tegra_vgpu.h>
22 20
diff --git a/drivers/gpu/nvgpu/vgpu/gk20a/vgpu_gr_gk20a.c b/drivers/gpu/nvgpu/vgpu/gk20a/vgpu_gr_gk20a.c
index 0ba8db56..23da728e 100644
--- a/drivers/gpu/nvgpu/vgpu/gk20a/vgpu_gr_gk20a.c
+++ b/drivers/gpu/nvgpu/vgpu/gk20a/vgpu_gr_gk20a.c
@@ -11,8 +11,6 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include <linux/kernel.h>
15
16#include "gk20a/gk20a.h" 14#include "gk20a/gk20a.h"
17#include "vgpu_gr_gk20a.h" 15#include "vgpu_gr_gk20a.h"
18 16
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
index 8e44eda4..945e24fc 100644
--- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
+++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c
@@ -11,8 +11,6 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include <linux/kernel.h>
15
16#include "gk20a/gk20a.h" 14#include "gk20a/gk20a.h"
17#include "vgpu_gr_gm20b.h" 15#include "vgpu_gr_gm20b.h"
18 16
diff --git a/drivers/gpu/nvgpu/vgpu/sysfs_vgpu.c b/drivers/gpu/nvgpu/vgpu/sysfs_vgpu.c
index d43a34aa..5a9f1fee 100644
--- a/drivers/gpu/nvgpu/vgpu/sysfs_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/sysfs_vgpu.c
@@ -12,7 +12,6 @@
12 */ 12 */
13 13
14#include <linux/device.h> 14#include <linux/device.h>
15#include <linux/kernel.h>
16#include <linux/gk20a.h> 15#include <linux/gk20a.h>
17 16
18#include "vgpu/vgpu.h" 17#include "vgpu/vgpu.h"
diff --git a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
index 8a0276f7..701be345 100644
--- a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c
@@ -14,7 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include <linux/kernel.h>
18#include <linux/tegra_vgpu.h> 17#include <linux/tegra_vgpu.h>
19 18
20#include "gk20a/gk20a.h" 19#include "gk20a/gk20a.h"
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h
index d9a6f7fd..2c30ff06 100644
--- a/include/linux/tegra_vgpu.h
+++ b/include/linux/tegra_vgpu.h
@@ -19,6 +19,8 @@
19#ifndef __TEGRA_VGPU_H 19#ifndef __TEGRA_VGPU_H
20#define __TEGRA_VGPU_H 20#define __TEGRA_VGPU_H
21 21
22#include <nvgpu/types.h>
23
22enum { 24enum {
23 TEGRA_VGPU_MODULE_GPU = 0, 25 TEGRA_VGPU_MODULE_GPU = 0,
24}; 26};