qcacmn: replace complete_and_exit with kthread_complete_and_exit
In kernel 5.17, complete_and_exit is replaced with kthread_complete_and_exit. So if kernel version is >= 5.17, then use kthread_complete_and_exit. Change-Id: I4e9a98373197eba4931a8dafe77040448ffb40eb CRs-Fixed: 3297481
这个提交包含在:
@@ -64,6 +64,15 @@
|
||||
#include <cdp_txrx_misc.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The following commit was introduced in v5.17:
|
||||
* cead18552660 ("exit: Rename complete_and_exit to kthread_complete_and_exit")
|
||||
* Use the old name for kernels before 5.17
|
||||
*/
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
|
||||
#define kthread_complete_and_exit(c, s) complete_and_exit(c, s)
|
||||
#endif
|
||||
|
||||
#define MAX_NUM_PKT_LOG 32
|
||||
|
||||
#define LOGGING_TRACE(level, args ...) \
|
||||
@@ -923,7 +932,7 @@ static int wlan_logging_thread(void *Arg)
|
||||
&gwlan_logging.eventFlag);
|
||||
}
|
||||
|
||||
complete_and_exit(&gwlan_logging.shutdown_comp, 0);
|
||||
kthread_complete_and_exit(&gwlan_logging.shutdown_comp, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户