summarylogtreecommitdiffstats
path: root/fix-linux-6-12-build.patch
blob: a9ae61d51aa76f0b5fa9740cf88c676455e5904f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/ch9344.c b/ch9344.c
index 8130334..b017faa 100644
--- a/ch9344.c
+++ b/ch9344.c
@@ -62,7 +62,11 @@
 #include <linux/timer.h>
 #include <linux/kfifo.h>
 #include <asm/byteorder.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
+#include <linux/unaligned.h>
+#else
 #include <asm/unaligned.h>
+#endif
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
 #include <linux/sched/signal.h>