From 9734cc0d920ae8294eed9e2924f9da78734b4c05 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 14 Jun 2022 12:04:41 +0100 Subject: [PATCH] drm/tegra: Fix build for Linux v5.19 Upstream Linux commits da68386d9edb ("drm: Rename dp/ to display/") and 644edf52b630 ("drm/display: Move SCDC helpers into display-helper library") moved some of the DRM headers and this is causing the out of tree Tegra DRM driver build to fail with Linux v5.19. Fix this by correcting the include paths for Linux v5.19. Bug 3680147 Change-Id: Ic9b7a9d16da11e487ace4d09ffbff6ae4466e002 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2728509 Reviewed-by: Mikko Perttunen Reviewed-by: svc_kernel_abi GVS: Gerrit_Virtual_Submit --- drivers/gpu/drm/tegra/dp.c | 4 +++- drivers/gpu/drm/tegra/dpaux.c | 4 +++- drivers/gpu/drm/tegra/sor.c | 8 +++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/dp.c b/drivers/gpu/drm/tegra/dp.c index a895bd79..63854bae 100644 --- a/drivers/gpu/drm/tegra/dp.c +++ b/drivers/gpu/drm/tegra/dp.c @@ -6,7 +6,9 @@ #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +#include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) #include #else #include diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 22791115..7e6ebdc7 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -19,7 +19,9 @@ #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +#include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) #include #else #include diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index ca63c3ac..e6c25b7b 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -19,14 +19,20 @@ #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +#include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) #include #else #include #endif #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +#include +#else #include +#endif #include #include "dc.h"