From 54ffd6a012e7567b0288bc5fcc3678b545bd5aec Mon Sep 17 00:00:00 2001 From: mfrischknecht Date: Wed, 27 Nov 2024 07:09:37 +0100 Subject: [PATCH] Make new include path conditional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …so the module builds for both kernels below 6.12 and above. Thanks, @VoodaGod! Co-authored-by: Jason Rensburger --- src/amd/amdgpu/atom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/amdgpu/atom.c b/src/amd/amdgpu/atom.c index d14c849..36d45ff 100644 --- a/src/amd/amdgpu/atom.c +++ b/src/amd/amdgpu/atom.c @@ -29,7 +29,11 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0) +#include +#else #include +#endif //#include //#include