mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
11baab9fac
This makes the components used on the lantiq SoCs compile with kernel 6.1. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [also fix ifxmips_ptm_adsl.c] Signed-off-by: Martin Schiller <ms@dev.tdt.de>
15 lines
539 B
Diff
15 lines
539 B
Diff
--- a/src/common/drv_dsl_cpe_os_linux.c
|
|
+++ b/src/common/drv_dsl_cpe_os_linux.c
|
|
@@ -556,7 +556,11 @@ static int DSL_DRV_KernelThreadStartup(v
|
|
retVal = pThrCntrl->pThrFct(&pThrCntrl->thrParams);
|
|
pThrCntrl->thrParams.bRunning = 0;
|
|
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0))
|
|
complete_and_exit(&pThrCntrl->thrCompletion, (long)retVal);
|
|
+#else
|
|
+ kthread_complete_and_exit(&pThrCntrl->thrCompletion, (long)retVal);
|
|
+#endif
|
|
|
|
DSL_DEBUG( DSL_DBG_MSG,
|
|
(DSL_NULL, "EXIT - Kernel Thread Startup <%s>" DSL_DRV_CRLF,
|