summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-01 16:31:11 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:50 -0700
commitff0582cb395a8fd9be61926023a3923b9a908cc2 (patch)
tree5e1a1a4ed30f1dc0791a925a479897951e3e519f /config
parent82f2f1a3af28d8ceadab53aeba3e94ab02138f85 (diff)
Remove atomic64_xchg() wrappers
The atomic64_xchg() and atomic64_cmpxchg() functions have been available since Linux 2.6.24. There is no longer a need to maintain this compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m440
1 files changed, 0 insertions, 40 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 109c653c1..2a3d278de 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -23,8 +23,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_DEBUG_KMEM_TRACKING
SPL_AC_TEST_MODULE
SPL_AC_ATOMIC_SPINLOCK
- SPL_AC_TYPE_ATOMIC64_CMPXCHG
- SPL_AC_TYPE_ATOMIC64_XCHG
SPL_AC_TYPE_UINTPTR_T
SPL_AC_SHRINKER_CALLBACK
SPL_AC_CTL_NAME
@@ -810,44 +808,6 @@ AC_DEFUN([SPL_AC_ATOMIC_SPINLOCK], [
dnl #
dnl # 2.6.24 API change,
-dnl # check if atomic64_cmpxchg is defined
-dnl #
-AC_DEFUN([SPL_AC_TYPE_ATOMIC64_CMPXCHG],
- [AC_MSG_CHECKING([whether kernel defines atomic64_cmpxchg])
- SPL_LINUX_TRY_COMPILE([
- #include <linux/fs.h>
- ],[
- atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
- ],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_ATOMIC64_CMPXCHG, 1,
- [kernel defines atomic64_cmpxchg])
- ],[
- AC_MSG_RESULT([no])
- ])
-])
-
-dnl #
-dnl # 2.6.24 API change,
-dnl # check if atomic64_xchg is defined
-dnl #
-AC_DEFUN([SPL_AC_TYPE_ATOMIC64_XCHG],
- [AC_MSG_CHECKING([whether kernel defines atomic64_xchg])
- SPL_LINUX_TRY_COMPILE([
- #include <linux/fs.h>
- ],[
- atomic64_xchg((atomic64_t *)NULL, 0);
- ],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_ATOMIC64_XCHG, 1,
- [kernel defines atomic64_xchg])
- ],[
- AC_MSG_RESULT([no])
- ])
-])
-
-dnl #
-dnl # 2.6.24 API change,
dnl # check if uintptr_t typedef is defined
dnl #
AC_DEFUN([SPL_AC_TYPE_UINTPTR_T],