diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-10 14:38:41 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-13 21:56:30 -0500 |
commit | fd2cac59f3491cb5b4f5d1f3fc97df94734bd682 (patch) | |
tree | f58b133d0add2c05a1d019cae026059fc0b9a78d /drivers/gpu/nvgpu/common/linux | |
parent | c9419732776a3f31b3c1ace0cd113151f3a4d7cd (diff) |
gpu: nvgpu: Include UAPI explicitly
Add explicit #includes for <uapi/linux/nvgpu.h> for source code files
that depend on it.
JIRA NVGPU-259
Change-Id: I717d5f1493423fd3a7a34b6dd3380d33a9307a09
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1596254
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/cde.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ce2.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/channel.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/clk_arb.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vidmem.c | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c index 8e847206..143e5b75 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.c +++ b/drivers/gpu/nvgpu/common/linux/cde.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/dma-mapping.h> | 19 | #include <linux/dma-mapping.h> |
20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
21 | #include <linux/dma-buf.h> | 21 | #include <linux/dma-buf.h> |
22 | #include <uapi/linux/nvgpu.h> | ||
22 | 23 | ||
23 | #include <trace/events/gk20a.h> | 24 | #include <trace/events/gk20a.h> |
24 | 25 | ||
diff --git a/drivers/gpu/nvgpu/common/linux/ce2.c b/drivers/gpu/nvgpu/common/linux/ce2.c index 5f89ef7b..f172cede 100644 --- a/drivers/gpu/nvgpu/common/linux/ce2.c +++ b/drivers/gpu/nvgpu/common/linux/ce2.c | |||
@@ -14,6 +14,8 @@ | |||
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 <uapi/linux/nvgpu.h> | ||
18 | |||
17 | #include <nvgpu/types.h> | 19 | #include <nvgpu/types.h> |
18 | 20 | ||
19 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> | 21 | #include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> |
diff --git a/drivers/gpu/nvgpu/common/linux/channel.c b/drivers/gpu/nvgpu/common/linux/channel.c index c295336f..40b11b86 100644 --- a/drivers/gpu/nvgpu/common/linux/channel.c +++ b/drivers/gpu/nvgpu/common/linux/channel.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/uaccess.h> | 32 | #include <linux/uaccess.h> |
33 | #include <linux/dma-buf.h> | 33 | #include <linux/dma-buf.h> |
34 | #include <trace/events/gk20a.h> | 34 | #include <trace/events/gk20a.h> |
35 | #include <uapi/linux/nvgpu.h> | ||
35 | 36 | ||
36 | u32 nvgpu_get_gpfifo_entry_size(void) | 37 | u32 nvgpu_get_gpfifo_entry_size(void) |
37 | { | 38 | { |
diff --git a/drivers/gpu/nvgpu/common/linux/clk_arb.c b/drivers/gpu/nvgpu/common/linux/clk_arb.c index ff26f567..ef89f980 100644 --- a/drivers/gpu/nvgpu/common/linux/clk_arb.c +++ b/drivers/gpu/nvgpu/common/linux/clk_arb.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #ifdef CONFIG_DEBUG_FS | 31 | #ifdef CONFIG_DEBUG_FS |
32 | #include <linux/debugfs.h> | 32 | #include <linux/debugfs.h> |
33 | #endif | 33 | #endif |
34 | #include <uapi/linux/nvgpu.h> | ||
34 | 35 | ||
35 | #include <nvgpu/bitops.h> | 36 | #include <nvgpu/bitops.h> |
36 | #include <nvgpu/lock.h> | 37 | #include <nvgpu/lock.h> |
diff --git a/drivers/gpu/nvgpu/common/linux/vidmem.c b/drivers/gpu/nvgpu/common/linux/vidmem.c index 1e65b54d..1d9fea71 100644 --- a/drivers/gpu/nvgpu/common/linux/vidmem.c +++ b/drivers/gpu/nvgpu/common/linux/vidmem.c | |||
@@ -15,6 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <linux/dma-buf.h> | 17 | #include <linux/dma-buf.h> |
18 | #include <uapi/linux/nvgpu.h> | ||
18 | 19 | ||
19 | #include <linux/platform/tegra/tegra_fd.h> | 20 | #include <linux/platform/tegra/tegra_fd.h> |
20 | 21 | ||