tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxPackages.ax99100: Fix build with Linux 6.4
Markus Partheymüller
2 years ago
79719555
9336e11d
+15
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
ax99100
default.nix
kernel-6.4-fix-define-semaphore.patch
+1
pkgs/os-specific/linux/ax99100/default.nix
···
28
28
./kernel-6.1-set_termios-const-ktermios.patch
29
29
] ++ lib.optionals (lib.versionAtLeast kernel.version "6.2") [
30
30
./kernel-6.2-fix-pointer-type.patch
31
31
+
./kernel-6.4-fix-define-semaphore.patch
31
32
];
32
33
33
34
patchFlags = [ "-p0" ];
+14
pkgs/os-specific/linux/ax99100/kernel-6.4-fix-define-semaphore.patch
···
1
1
+
--- ax99100_sp.c
2
2
+
+++ ax99100_sp.c
3
3
+
@@ -2670,8 +2670,10 @@ static void serial99100_dma_tx_tasklet (unsigned long param)
4
4
+
5
5
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
6
6
+
static DECLARE_MUTEX(serial99100_sem);
7
7
+
-#else
8
8
+
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
9
9
+
static DEFINE_SEMAPHORE(serial99100_sem);
10
10
+
+#else
11
11
+
+static DEFINE_SEMAPHORE(serial99100_sem, 1);
12
12
+
#endif
13
13
+
14
14
+
static struct uart_driver starex_serial_driver = {