-
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.
Linux 5.17 compat: PDE_DATA() renamed to pde_data()
Upstream commit 359745d78351c6f5442435f81549f0207ece28aa ("proc: remove PDE_DATA() completely") Link: https://lore.kernel.org/all/[email protected]/T/#u Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13004 Closes #12989
- Loading branch information
1 parent
f42c126
commit 4f65994
Showing
3 changed files
with
11 additions
and
9 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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
dnl # | ||
dnl # 3.10 API change, | ||
dnl # PDE is replaced by PDE_DATA | ||
dnl # 5.17 API: PDE_DATA() renamed to pde_data(), | ||
dnl # 359745d78351c6f5442435f81549f0207ece28aa ("proc: remove PDE_DATA() completely") | ||
dnl # | ||
AC_DEFUN([ZFS_AC_KERNEL_SRC_PDE_DATA], [ | ||
ZFS_LINUX_TEST_SRC([pde_data], [ | ||
#include <linux/proc_fs.h> | ||
], [ | ||
PDE_DATA(NULL); | ||
pde_data(NULL); | ||
]) | ||
]) | ||
|
||
AC_DEFUN([ZFS_AC_KERNEL_PDE_DATA], [ | ||
AC_MSG_CHECKING([whether PDE_DATA() is available]) | ||
ZFS_LINUX_TEST_RESULT_SYMBOL([pde_data], [PDE_DATA], [], [ | ||
AC_MSG_CHECKING([whether pde_data() is lowercase]) | ||
ZFS_LINUX_TEST_RESULT([pde_data], [ | ||
AC_MSG_RESULT(yes) | ||
],[ | ||
ZFS_LINUX_TEST_ERROR([PDE_DATA]) | ||
AC_DEFINE(SPL_PDE_DATA, pde_data, [pde_data() is pde_data()]) | ||
], [ | ||
AC_MSG_RESULT(no) | ||
AC_DEFINE(SPL_PDE_DATA, PDE_DATA, [pde_data() is PDE_DATA()]) | ||
]) | ||
]) |
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