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
这个提交包含在:
Rajesh Chauhan
2022-09-21 23:11:54 -07:00
提交者 Madan Koyyalamudi
父节点 de3d501003
当前提交 c85603d008
修改 2 个文件,包含 21 行新增2 行删除

查看文件

@@ -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;
}