-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: detect {=> kthread_}complete_and_exit() rename for linux 5.16
Upstream commit cead18552660702a4a46f58e65188fe5f36e9dfe ("exit: Rename complete_and_exit to kthread_complete_and_exit") Ref: http://build.zfsonlinux.org/builders/Kernel.org%20Built-in%20x86_64%20%28BUILD%29/builds/43905/steps/shell_1/logs/make Signed-off-by: Ahelenia Ziemiańska <[email protected]>
- Loading branch information
1 parent
e1c720d
commit ea9b1da
Showing
4 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
AC_DEFUN([ZFS_AC_KERNEL_KTHREAD], [ | ||
dnl # | ||
dnl # 5.16 API, | ||
dnl # cead18552660702a4a46f58e65188fe5f36e9dfe ("exit: Rename complete_and_exit to kthread_complete_and_exit") | ||
dnl # | ||
dnl # Also moves the definition from i/l/kernel.h to i/l/kthread.h | ||
dnl # | ||
AC_MSG_CHECKING([whether kthread_complete_and_exit() is available]) | ||
ZFS_LINUX_TEST_RESULT([kthread_complete_and_exit], [ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(ZFS_KTHREAD_COMPLETE_AND_EXIT, kthread_complete_and_exit, [kthread_complete_and_exit() available]) | ||
], [ | ||
AC_MSG_RESULT(no) | ||
AC_DEFINE(ZFS_KTHREAD_COMPLETE_AND_EXIT, complete_and_exit, [using complete_and_exit() instead]) | ||
]) | ||
]) | ||
|
||
AC_DEFUN([ZFS_AC_KERNEL_SRC_KTHREAD], [ | ||
ZFS_LINUX_TEST_SRC([kthread_complete_and_exit], [ | ||
#include <linux/kthread.h> | ||
], [ | ||
kthread_complete_and_exit(NULL, 0); | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters