diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-10-30 16:32:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-06 13:06:44 -0500 |
commit | 82207a3d3cc69b296158e6ead6061df24609b777 (patch) | |
tree | ef224d5831c99d0707047edbf572802ef8a9f6bf /drivers/gpu/nvgpu | |
parent | 1e7ba4c76d5a6a1b89f3af3bc418391596adc3f3 (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>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 9 |
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 | ||
28 | struct device; | ||
29 | struct tegra_vgpu_gr_intr_info; | ||
30 | struct tegra_vgpu_fifo_intr_info; | ||
31 | struct tegra_vgpu_cmd_msg; | ||
32 | struct 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 | |||
38 | struct vgpu_priv_data { | 43 | struct vgpu_priv_data { |
39 | u64 virt_handle; | 44 | u64 virt_handle; |
40 | struct nvgpu_thread intr_handler; | 45 | struct nvgpu_thread intr_handler; |