From 3531866677d1fbb854bf2b1ee860b6fc0e468df3 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 6 Jul 2020 12:36:26 -0700 Subject: [PATCH] gpu: nvgpu: Include linux/platform/tegra/common.h only in downstream linux/platform/tegra/common.h is a Tegra downstream kernel specific header file. #include it only if downstream fuse or VPR support exists. Bug 3030537 Change-Id: Ia6b9bc94aca64afdb7d4d44f8a49befc2a3de4e0 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2371380 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 2 ++ drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index b1e136259..b95b47f69 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -26,7 +26,9 @@ #include #include #include +#ifdef CONFIG_NVGPU_VPR #include +#endif #include #include diff --git a/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c index b58ae4c8a..ad75ec5a7 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c @@ -24,7 +24,9 @@ #if defined(CONFIG_TEGRA_DVFS) #include #endif +#ifdef CONFIG_NVGPU_TEGRA_FUSE #include +#endif #ifdef CONFIG_NV_TEGRA_MC #include