From c8c96b4e3a0ac42dd56f8834395915f55ecdc092 Mon Sep 17 00:00:00 2001 From: laanwj <126646+laanwj@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:28:35 +0200 Subject: [PATCH] Fix build on kernel >=6.12 `asm/unaligned.h` moved in this release, and can no longer be found in the old location. --- driver/ch341.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/ch341.c b/driver/ch341.c index 0fa4798..8d0e1dd 100644 --- a/driver/ch341.c +++ b/driver/ch341.c @@ -55,7 +55,11 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0) #include +#else +#include +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) #include