Merge pull request #241639 from parthy/ax99100-linux-6-4
linuxPackages.ax99100: Fix build with Linux 6.4
This commit is contained in:
commit
baf494e5d5
2 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,7 @@ stdenv.mkDerivation {
|
||||||
./kernel-6.1-set_termios-const-ktermios.patch
|
./kernel-6.1-set_termios-const-ktermios.patch
|
||||||
] ++ lib.optionals (lib.versionAtLeast kernel.version "6.2") [
|
] ++ lib.optionals (lib.versionAtLeast kernel.version "6.2") [
|
||||||
./kernel-6.2-fix-pointer-type.patch
|
./kernel-6.2-fix-pointer-type.patch
|
||||||
|
./kernel-6.4-fix-define-semaphore.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
patchFlags = [ "-p0" ];
|
patchFlags = [ "-p0" ];
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
--- ax99100_sp.c
|
||||||
|
+++ ax99100_sp.c
|
||||||
|
@@ -2670,8 +2670,10 @@ static void serial99100_dma_tx_tasklet (unsigned long param)
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
|
||||||
|
static DECLARE_MUTEX(serial99100_sem);
|
||||||
|
-#else
|
||||||
|
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
|
||||||
|
static DEFINE_SEMAPHORE(serial99100_sem);
|
||||||
|
+#else
|
||||||
|
+static DEFINE_SEMAPHORE(serial99100_sem, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static struct uart_driver starex_serial_driver = {
|
Loading…
Reference in a new issue