summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-10-30 16:32:18 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-06 13:06:44 -0500
commit82207a3d3cc69b296158e6ead6061df24609b777 (patch)
treeef224d5831c99d0707047edbf572802ef8a9f6bf
parent1e7ba4c76d5a6a1b89f3af3bc418391596adc3f3 (diff)
gpu: nvgpu: Put #includes in vgpu.h behind #ifdef
JIRA NVGPU-259 Change-Id: I6d88f652d24ff6cf418b5f3680ace733309a6fea Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1590126 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao <rizhao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h
index 6ce61e92..dcfbddf2 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.h
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.h
@@ -25,6 +25,13 @@
25#ifndef _VIRT_H_ 25#ifndef _VIRT_H_
26#define _VIRT_H_ 26#define _VIRT_H_
27 27
28struct device;
29struct tegra_vgpu_gr_intr_info;
30struct tegra_vgpu_fifo_intr_info;
31struct tegra_vgpu_cmd_msg;
32struct gk20a_platform;
33
34#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
28#include <linux/tegra_gr_comm.h> 35#include <linux/tegra_gr_comm.h>
29#include <linux/tegra_vgpu.h> 36#include <linux/tegra_vgpu.h>
30#include "gk20a/gk20a.h" 37#include "gk20a/gk20a.h"
@@ -33,8 +40,6 @@
33 40
34#include <nvgpu/thread.h> 41#include <nvgpu/thread.h>
35 42
36#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
37
38struct vgpu_priv_data { 43struct vgpu_priv_data {
39 u64 virt_handle; 44 u64 virt_handle;
40 struct nvgpu_thread intr_handler; 45 struct nvgpu_thread intr_handler;