Message ID | 20220131140855.29ba6773df38.I0c3c1ed3d75dcd800d0a4ef41943a4db10ea5df4@changeid (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] backports: add kthread.h | expand |
diff --git a/backport/backport-include/linux/kthread.h b/backport/backport-include/linux/kthread.h new file mode 100644 index 000000000000..23a599e92b30 --- /dev/null +++ b/backport/backport-include/linux/kthread.h @@ -0,0 +1,13 @@ +#ifndef __BACKPORT_LINUX_KTHREAD_H +#define __BACKPORT_LINUX_KTHREAD_H +#include_next <linux/kthread.h> + +#if LINUX_VERSION_IS_LESS(5,17,0) +static inline void __noreturn +kthread_complete_and_exit(struct completion *c, long ret) +{ + complete_and_exit(c, ret); +} +#endif /* < 5.17 */ + +#endif /* __BACKPORT_LINUX_KTHREAD_H */