]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Remove linux/uaccess.h header check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Oct 2014 20:40:37 +0000 (16:40 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Oct 2014 22:11:51 +0000 (15:11 -0700)
The uaccess header has been available in the same location since
Linux 2.6.18.  There is no longer a need to maintain this
compatibility code.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/spl-build.m4
include/linux/Makefile.am
include/linux/uaccess_compat.h [deleted file]
include/sys/types.h

index af3ce23d11906a6513edcb678548b24cb4636c9a..346c40b644c83f00024cc5ef9ec369e392647811 100644 (file)
@@ -27,7 +27,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
        SPL_AC_CTL_NAME
        SPL_AC_VMALLOC_INFO
        SPL_AC_PDE_DATA
-       SPL_AC_UACCESS_HEADER
        SPL_AC_KMALLOC_NODE
        SPL_AC_INODE_I_MUTEX
        SPL_AC_MUTEX_OWNER
@@ -928,14 +927,6 @@ AC_DEFUN([SPL_AC_CTL_NAME], [
        ])
 ])
 
-dnl #
-dnl # 2.6.18 API change,
-dnl # added linux/uaccess.h
-dnl #
-AC_DEFUN([SPL_AC_UACCESS_HEADER], [
-       SPL_CHECK_HEADER([linux/uaccess.h], [UACCESS], [], [])
-])
-
 dnl #
 dnl # 2.6.12 API change,
 dnl # check whether 'kmalloc_node()' is available.
index c921cc5763530e1c303356b753597adb21d505bf..94ffc4721481849dba276e1ef70fead92082a5a1 100644 (file)
@@ -15,7 +15,6 @@ KERNEL_H = \
        $(top_srcdir)/include/linux/rwsem_compat.h \
        $(top_srcdir)/include/linux/smp_compat.h \
        $(top_srcdir)/include/linux/sysctl_compat.h \
-       $(top_srcdir)/include/linux/uaccess_compat.h \
        $(top_srcdir)/include/linux/wait_compat.h \
        $(top_srcdir)/include/linux/zlib_compat.h
 
diff --git a/include/linux/uaccess_compat.h b/include/linux/uaccess_compat.h
deleted file mode 100644 (file)
index c84e61d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*****************************************************************************\
- *  Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
- *  Copyright (C) 2007 The Regents of the University of California.
- *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
- *  Written by Brian Behlendorf <behlendorf1@llnl.gov>.
- *  UCRL-CODE-235197
- *
- *  This file is part of the SPL, Solaris Porting Layer.
- *  For details, see <http://zfsonlinux.org/>.
- *
- *  The SPL is free software; you can redistribute it and/or modify it
- *  under the terms of the GNU General Public License as published by the
- *  Free Software Foundation; either version 2 of the License, or (at your
- *  option) any later version.
- *
- *  The SPL is distributed in the hope that it will be useful, but WITHOUT
- *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- *  for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with the SPL.  If not, see <http://www.gnu.org/licenses/>.
-\*****************************************************************************/
-
-#ifndef _SPL_UACCESS_COMPAT_H
-#define _SPL_UACCESS_COMPAT_H
-
-#ifdef HAVE_UACCESS_HEADER
-#include <linux/uaccess.h>
-#else
-#include <asm/uaccess.h>
-#endif
-
-#endif /* _SPL_UACCESS_COMPAT_H */
-
index a2b68efe3159f4a01316ab0dc6dc621c13b0a459..3bd0cfd928c1055e4f3f8a87cc5d719ce81cf2fa 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/types.h>
 #include <sys/sysmacros.h>
 
-#include <linux/uaccess_compat.h>
 #include <linux/file_compat.h>
 #include <linux/list_compat.h>
 #include <linux/bitops_compat.h>
@@ -43,6 +42,7 @@
 #include <linux/mm_compat.h>
 #include <linux/delay.h>
 #include <linux/wait_compat.h>
+#include <linux/uaccess.h>
 
 #ifndef ULLONG_MAX
 #define ULLONG_MAX                     (~0ULL)