summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/spl-build.m420
-rw-r--r--include/sys/types.h4
2 files changed, 0 insertions, 24 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 2a3d278de..af3ce23d1 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -23,7 +23,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_DEBUG_KMEM_TRACKING
SPL_AC_TEST_MODULE
SPL_AC_ATOMIC_SPINLOCK
- SPL_AC_TYPE_UINTPTR_T
SPL_AC_SHRINKER_CALLBACK
SPL_AC_CTL_NAME
SPL_AC_VMALLOC_INFO
@@ -806,25 +805,6 @@ AC_DEFUN([SPL_AC_ATOMIC_SPINLOCK], [
AC_MSG_RESULT([$have_atomic64_t])
])
-dnl #
-dnl # 2.6.24 API change,
-dnl # check if uintptr_t typedef is defined
-dnl #
-AC_DEFUN([SPL_AC_TYPE_UINTPTR_T],
- [AC_MSG_CHECKING([whether kernel defines uintptr_t])
- SPL_LINUX_TRY_COMPILE([
- #include <linux/types.h>
- ],[
- uintptr_t *ptr __attribute__ ((unused));
- ],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_UINTPTR_T, 1,
- [kernel defines uintptr_t])
- ],[
- AC_MSG_RESULT([no])
- ])
-])
-
AC_DEFUN([SPL_AC_SHRINKER_CALLBACK],[
tmp_flags="$EXTRA_KCFLAGS"
EXTRA_KCFLAGS="-Werror"
diff --git a/include/sys/types.h b/include/sys/types.h
index 11a325494..a2b68efe3 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -44,10 +44,6 @@
#include <linux/delay.h>
#include <linux/wait_compat.h>
-#ifndef HAVE_UINTPTR_T
-typedef unsigned long uintptr_t;
-#endif
-
#ifndef ULLONG_MAX
#define ULLONG_MAX (~0ULL)
#endif