summarylogtreecommitdiffstats
path: root/0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch
diff options
context:
space:
mode:
authorChris Severance2023-12-18 02:17:37 -0500
committerChris Severance2023-12-18 02:17:37 -0500
commitecfd0dd193679a83b8f09b9ac58970122a80e48f (patch)
treeb087fccde88971026db2fb40806d4134cf180c1d /0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch
parent6a64238b6b33c7956eb0a27e215af3ea2bc66101 (diff)
downloadaur-asix-ax99100.tar.gz
autu: Update to 1.9.0-1
Diffstat (limited to '0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch')
-rw-r--r--0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch b/0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch
new file mode 100644
index 000000000000..c79a16ff26ee
--- /dev/null
+++ b/0005-kernel-6.4-DEFINE_SEMAPHORE-2arg.patch
@@ -0,0 +1,19 @@
+diff -pNaru5 a/ax99100_sp.c b/ax99100_sp.c
+--- a/ax99100_sp.c 2023-08-07 06:18:10.000000000 -0400
++++ b/ax99100_sp.c 2023-12-18 02:09:56.226262255 -0500
+@@ -2692,11 +2692,15 @@ static void serial99100_dma_tx_tasklet (
+ }
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
+ static DECLARE_MUTEX(serial99100_sem);
+ #else
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
+ static DEFINE_SEMAPHORE(serial99100_sem);
++#else
++static DEFINE_SEMAPHORE(serial99100_sem,1);
++#endif
+ #endif
+
+ static struct uart_driver starex_serial_driver = {
+ .owner = THIS_MODULE,
+ .driver_name = "AX99100",