diff --git a/config/spl-build.m4 b/config/spl-build.m4 index af3ce23d11..346c40b644 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -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. diff --git a/include/linux/Makefile.am b/include/linux/Makefile.am index c921cc5763..94ffc47214 100644 --- a/include/linux/Makefile.am +++ b/include/linux/Makefile.am @@ -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 index c84e61d306..0000000000 --- a/include/linux/uaccess_compat.h +++ /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 . - * UCRL-CODE-235197 - * - * This file is part of the SPL, Solaris Porting Layer. - * For details, see . - * - * 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 . -\*****************************************************************************/ - -#ifndef _SPL_UACCESS_COMPAT_H -#define _SPL_UACCESS_COMPAT_H - -#ifdef HAVE_UACCESS_HEADER -#include -#else -#include -#endif - -#endif /* _SPL_UACCESS_COMPAT_H */ - diff --git a/include/sys/types.h b/include/sys/types.h index a2b68efe31..3bd0cfd928 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -28,7 +28,6 @@ #include #include -#include #include #include #include @@ -43,6 +42,7 @@ #include #include #include +#include #ifndef ULLONG_MAX #define ULLONG_MAX (~0ULL)