]> git.proxmox.com Git - mirror_spl.git/commitdiff
Remove uintptr_t typedef
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Oct 2014 20:35:11 +0000 (16:35 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Oct 2014 22:11:50 +0000 (15:11 -0700)
The uintptr_t typedef has been available since Linux 2.6.24.
There is no longer a need to maintain this compatibility code.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/spl-build.m4
include/sys/types.h

index 2a3d278deb3145fdf10fc2158f394a6298e48991..af3ce23d11906a6513edcb678548b24cb4636c9a 100644 (file)
@@ -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"
index 11a32549495ef795378ee1b37953775d5120fde3..a2b68efe3159f4a01316ab0dc6dc621c13b0a459 100644 (file)
 #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