mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 04:00:31 +03:00
config: remove HAVE_IN_COMPAT_SYSCALL
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
9b6f93a72f
commit
6374171bb4
@ -1,24 +0,0 @@
|
|||||||
dnl #
|
|
||||||
dnl # 4.5 API change
|
|
||||||
dnl # Added in_compat_syscall() which can be overridden on a per-
|
|
||||||
dnl # architecture basis. Prior to this is_compat_task() was the
|
|
||||||
dnl # provided interface.
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL], [
|
|
||||||
ZFS_LINUX_TEST_SRC([in_compat_syscall], [
|
|
||||||
#include <linux/compat.h>
|
|
||||||
],[
|
|
||||||
in_compat_syscall();
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_IN_COMPAT_SYSCALL], [
|
|
||||||
AC_MSG_CHECKING([whether in_compat_syscall() is available])
|
|
||||||
ZFS_LINUX_TEST_RESULT([in_compat_syscall], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
|
|
||||||
[in_compat_syscall() is available])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
@ -119,7 +119,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
|||||||
ZFS_AC_KERNEL_SRC_KUID_HELPERS
|
ZFS_AC_KERNEL_SRC_KUID_HELPERS
|
||||||
ZFS_AC_KERNEL_SRC_RENAME
|
ZFS_AC_KERNEL_SRC_RENAME
|
||||||
ZFS_AC_KERNEL_SRC_USERNS_CAPABILITIES
|
ZFS_AC_KERNEL_SRC_USERNS_CAPABILITIES
|
||||||
ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL
|
|
||||||
ZFS_AC_KERNEL_SRC_KTIME
|
ZFS_AC_KERNEL_SRC_KTIME
|
||||||
ZFS_AC_KERNEL_SRC_TOTALRAM_PAGES_FUNC
|
ZFS_AC_KERNEL_SRC_TOTALRAM_PAGES_FUNC
|
||||||
ZFS_AC_KERNEL_SRC_TOTALHIGH_PAGES
|
ZFS_AC_KERNEL_SRC_TOTALHIGH_PAGES
|
||||||
@ -253,7 +252,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
|||||||
ZFS_AC_KERNEL_KUID_HELPERS
|
ZFS_AC_KERNEL_KUID_HELPERS
|
||||||
ZFS_AC_KERNEL_RENAME
|
ZFS_AC_KERNEL_RENAME
|
||||||
ZFS_AC_KERNEL_USERNS_CAPABILITIES
|
ZFS_AC_KERNEL_USERNS_CAPABILITIES
|
||||||
ZFS_AC_KERNEL_IN_COMPAT_SYSCALL
|
|
||||||
ZFS_AC_KERNEL_KTIME
|
ZFS_AC_KERNEL_KTIME
|
||||||
ZFS_AC_KERNEL_TOTALRAM_PAGES_FUNC
|
ZFS_AC_KERNEL_TOTALRAM_PAGES_FUNC
|
||||||
ZFS_AC_KERNEL_TOTALHIGH_PAGES
|
ZFS_AC_KERNEL_TOTALHIGH_PAGES
|
||||||
|
@ -312,11 +312,7 @@ static inline int
|
|||||||
zpl_is_32bit_api(void)
|
zpl_is_32bit_api(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
#ifdef HAVE_IN_COMPAT_SYSCALL
|
|
||||||
return (in_compat_syscall());
|
return (in_compat_syscall());
|
||||||
#else
|
|
||||||
return (is_compat_task());
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
return (BITS_PER_LONG == 32);
|
return (BITS_PER_LONG == 32);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user