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 | |
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')
-rw-r--r-- | drivers/gpu/nvgpu/common/as.c | 1 | ||||
-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 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/gmmu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm_area.c | 2 |
9 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/as.c b/drivers/gpu/nvgpu/common/as.c index f4f00fba..7ca754e1 100644 --- a/drivers/gpu/nvgpu/common/as.c +++ b/drivers/gpu/nvgpu/common/as.c | |||
@@ -23,6 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <trace/events/gk20a.h> | 25 | #include <trace/events/gk20a.h> |
26 | #include <uapi/linux/nvgpu.h> | ||
26 | 27 | ||
27 | #include <nvgpu/kmem.h> | 28 | #include <nvgpu/kmem.h> |
28 | #include <nvgpu/vm.h> | 29 | #include <nvgpu/vm.h> |
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 | ||
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c index 4289104d..568da8c4 100644 --- a/drivers/gpu/nvgpu/common/mm/gmmu.c +++ b/drivers/gpu/nvgpu/common/mm/gmmu.c | |||
@@ -20,6 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <uapi/linux/nvgpu.h> | ||
24 | |||
23 | #include <nvgpu/log.h> | 25 | #include <nvgpu/log.h> |
24 | #include <nvgpu/list.h> | 26 | #include <nvgpu/list.h> |
25 | #include <nvgpu/dma.h> | 27 | #include <nvgpu/dma.h> |
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index 97c6d4ca..cfac4f8e 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -21,6 +21,8 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <nvgpu/bug.h> | 23 | #include <nvgpu/bug.h> |
24 | #include <uapi/linux/nvgpu.h> | ||
25 | |||
24 | #include <nvgpu/log.h> | 26 | #include <nvgpu/log.h> |
25 | #include <nvgpu/dma.h> | 27 | #include <nvgpu/dma.h> |
26 | #include <nvgpu/vm.h> | 28 | #include <nvgpu/vm.h> |
diff --git a/drivers/gpu/nvgpu/common/mm/vm_area.c b/drivers/gpu/nvgpu/common/mm/vm_area.c index fddec357..b6286c43 100644 --- a/drivers/gpu/nvgpu/common/mm/vm_area.c +++ b/drivers/gpu/nvgpu/common/mm/vm_area.c | |||
@@ -20,6 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <uapi/linux/nvgpu.h> | ||
24 | |||
23 | #include <nvgpu/vm.h> | 25 | #include <nvgpu/vm.h> |
24 | #include <nvgpu/vm_area.h> | 26 | #include <nvgpu/vm_area.h> |
25 | 27 | ||