summaryrefslogtreecommitdiffstats
path: root/config/spl-build.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-09-30 17:10:35 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:50 -0700
commitb38bf6a4e3bb321b1e4fad1be5a77faf22dcdcbc (patch)
tree77dae8179b678c1fd2832d8ce96b9855f95c18a1 /config/spl-build.m4
parentbb4dee3df2a191032201ce7f367be12fd898e08d (diff)
Remove register_sysctl() compatibility code
The register_sysctl() interface has been stable since Linux 2.6.21. There is no longer a need to maintain compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'config/spl-build.m4')
-rw-r--r--config/spl-build.m420
1 files changed, 0 insertions, 20 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index ba9902599..93834c1ab 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -26,7 +26,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_TYPE_ATOMIC64_CMPXCHG
SPL_AC_TYPE_ATOMIC64_XCHG
SPL_AC_TYPE_UINTPTR_T
- SPL_AC_2ARGS_REGISTER_SYSCTL
SPL_AC_SHRINKER_CALLBACK
SPL_AC_CTL_UNNUMBERED
SPL_AC_CTL_NAME
@@ -872,25 +871,6 @@ AC_DEFUN([SPL_AC_TYPE_UINTPTR_T],
])
])
-dnl #
-dnl # 2.6.21 API change,
-dnl # 'register_sysctl_table' use only one argument instead of two
-dnl #
-AC_DEFUN([SPL_AC_2ARGS_REGISTER_SYSCTL],
- [AC_MSG_CHECKING([whether register_sysctl_table() wants 2 args])
- SPL_LINUX_TRY_COMPILE([
- #include <linux/sysctl.h>
- ],[
- (void) register_sysctl_table(NULL, 0);
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_2ARGS_REGISTER_SYSCTL, 1,
- [register_sysctl_table() wants 2 args])
- ],[
- AC_MSG_RESULT(no)
- ])
-])
-
AC_DEFUN([SPL_AC_SHRINKER_CALLBACK],[
tmp_flags="$EXTRA_KCFLAGS"
EXTRA_KCFLAGS="-Werror"