From 3ad90175d178f6637afa0c88802a144dabd07d96 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Thu, 3 Apr 2025 15:33:06 +0100 Subject: [PATCH] drm/tegra: Update to Linux v6.14 Update Tegra DRM to align with Linux v6.14. The 'drm_client_setup.h' was moved from the directory 'include/drm/' to 'include/drm/clients' and use conftest to detect where it is located. JIRA LINQPJ14-47 Change-Id: I1f1df6da4400e74d2f97926710ac0ddd5e6413e6 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3333837 Reviewed-by: mobile promotions GVS: buildbot_gerritrpt Reviewed-by: Mikko Perttunen Tested-by: mobile promotions --- drivers/gpu/drm/tegra/drm.c | 8 +++++--- scripts/conftest/Makefile | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index ddb420d6..4fb594ac 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -21,11 +21,13 @@ #else #include #endif -#include -#include -#if defined(NV_DRM_DRM_CLIENT_SETUP_H_PRESENT) /* Linux v6.13 */ +#if defined(NV_DRM_CLIENTS_DRM_CLIENT_SETUP_H_PRESENT) /* Linux v6.14 */ +#include +#elif defined(NV_DRM_DRM_CLIENT_SETUP_H_PRESENT) /* Linux v6.13 */ #include #endif +#include +#include #include #include #include diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index 5e87edbf..f441cda7 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -262,6 +262,7 @@ $(obj)/conftest/patches.h: $(NV_CONFTEST_SCRIPT) # Each of these headers is checked for presence with a test #include; a # corresponding #define will be generated in conftest/headers.h. NV_HEADER_PRESENCE_TESTS = \ + drm/clients/drm_client_setup.h \ drm/display/drm_dp_aux_bus.h \ drm/display/drm_dp_helper.h \ drm/display/drm_scdc_helper.h \