From 973553069dcf4220484e6ea85f35646ab8a12094 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 23 Oct 2017 09:11:51 -0700 Subject: gpu: nvgpu: Fix missing #includes and fw decls in Linux code ioctl_channel.h and cde.h referred to multiple structures that were not forward declared or explitly #included in. Add several forward declarations and #includes. Also add #include for to multiple Linux .c files that were missing it. Change-Id: Iefd52e71224d5810b5abbcc765f92bc535d7a28b Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1591634 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/cde.h | 14 ++++++++++++++ drivers/gpu/nvgpu/common/linux/driver_common.c | 1 + drivers/gpu/nvgpu/common/linux/ioctl_channel.h | 7 +++++++ drivers/gpu/nvgpu/common/linux/module.c | 1 + drivers/gpu/nvgpu/common/linux/vm.c | 1 + 5 files changed, 24 insertions(+) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/linux/cde.h b/drivers/gpu/nvgpu/common/linux/cde.h index 22732a2a..5dd15c37 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.h +++ b/drivers/gpu/nvgpu/common/linux/cde.h @@ -19,6 +19,13 @@ #ifndef _CDE_GK20A_H_ #define _CDE_GK20A_H_ +#include +#include +#include + +#include +#include + #define MAX_CDE_BUFS 10 #define MAX_CDE_PARAMS 64 #define MAX_CDE_USER_PARAMS 40 @@ -33,7 +40,14 @@ #define NUM_CDE_CONTEXTS 4 struct dma_buf; +struct device; +struct nvgpu_os_linux; struct gk20a; +struct gk20a_fence; +struct nvgpu_fence; +struct channel_gk20a; +struct vm_gk20a; +struct nvgpu_gpfifo; /* * this element defines a buffer that is allocated and mapped into gpu address diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 1c6002de..9e567c27 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c @@ -15,6 +15,7 @@ */ #include +#include #include #include diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.h b/drivers/gpu/nvgpu/common/linux/ioctl_channel.h index 8cfce7e1..c3cd11c7 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.h +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.h @@ -13,6 +13,13 @@ #ifndef __NVGPU_IOCTL_CHANNEL_H__ #define __NVGPU_IOCTL_CHANNEL_H__ +#include + +struct inode; +struct file; +struct gk20a; +struct nvgpu_channel_open_args; + int gk20a_channel_open(struct inode *inode, struct file *filp); int gk20a_channel_release(struct inode *inode, struct file *filp); long gk20a_channel_ioctl(struct file *filp, diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 4841b032..2e90fbe4 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/drivers/gpu/nvgpu/common/linux/vm.c b/drivers/gpu/nvgpu/common/linux/vm.c index 123807d9..0cfd010b 100644 --- a/drivers/gpu/nvgpu/common/linux/vm.c +++ b/drivers/gpu/nvgpu/common/linux/vm.c @@ -16,6 +16,7 @@ #include #include +#include #include #include -- cgit v1.2.2