aboutsummaryrefslogtreecommitdiff
path: root/package/kernel/lantiq
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2023-08-22 12:37:10 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-08-27 19:26:53 +0200
commit27633cefac14fe0e0fde4e6285b9241076124c62 (patch)
treef5135f0df6699c29abdd081e5425f43c91e7d38e /package/kernel/lantiq
parentf0138de3e5feb5ec57e0d195debe4b15da2aea85 (diff)
ltq-ifxos: fix compilation error with kernel 6.1
Conditionally use the newer APIs. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'package/kernel/lantiq')
-rw-r--r--package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
index 45059890e1..a3f210487e 100644
--- a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
+++ b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
@@ -90,3 +90,17 @@
return ret;
}
+--- a/src/linux/ifxos_linux_thread_drv.c
++++ b/src/linux/ifxos_linux_thread_drv.c
+@@ -154,7 +154,11 @@ IFXOS_STATIC int IFXOS_KernelThreadStart
+ retVal = pThrCntrl->pThrFct(&pThrCntrl->thrParams);
+ pThrCntrl->thrParams.bRunning = IFX_FALSE;
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0))
++ kthread_complete_and_exit(&pThrCntrl->thrCompletion, (long)retVal);
++#else
+ complete_and_exit(&pThrCntrl->thrCompletion, (long)retVal);
++#endif
+
+ IFXOS_PRN_USR_DBG_NL( IFXOS, IFXOS_PRN_LEVEL_NORMAL,
+ ("EXIT - Kernel Thread Startup <%s>" IFXOS_CRLF,