Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
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,
|