summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/spl-build.m420
-rw-r--r--include/sys/Makefile.am1
-rw-r--r--include/sys/utsname.h34
-rw-r--r--module/spl/spl-generic.c12
4 files changed, 0 insertions, 67 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index d8cc018de..ba9902599 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -36,7 +36,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_SET_NORMALIZED_TIMESPEC_EXPORT
SPL_AC_SET_NORMALIZED_TIMESPEC_INLINE
SPL_AC_TIMESPEC_SUB
- SPL_AC_INIT_UTSNAME
SPL_AC_UACCESS_HEADER
SPL_AC_KMALLOC_NODE
SPL_AC_MONOTONIC_CLOCK
@@ -1115,25 +1114,6 @@ AC_DEFUN([SPL_AC_TIMESPEC_SUB], [
])
dnl #
-dnl # 2.6.19 API change,
-dnl # check if init_utsname() is available in linux/utsname.h
-dnl #
-AC_DEFUN([SPL_AC_INIT_UTSNAME], [
- AC_MSG_CHECKING([whether init_utsname() is available])
- SPL_LINUX_TRY_COMPILE([
- #include <linux/utsname.h>
- ],[
- struct new_utsname *a __attribute__ ((unused));
- a = init_utsname();
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_INIT_UTSNAME, 1, [init_utsname() is available])
- ],[
- AC_MSG_RESULT(no)
- ])
-])
-
-dnl #
dnl # 2.6.18 API change,
dnl # added linux/uaccess.h
dnl #
diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am
index 9d8263657..985c51319 100644
--- a/include/sys/Makefile.am
+++ b/include/sys/Makefile.am
@@ -90,7 +90,6 @@ KERNEL_H = \
$(top_srcdir)/include/sys/u8_textprep.h \
$(top_srcdir)/include/sys/uio.h \
$(top_srcdir)/include/sys/unistd.h \
- $(top_srcdir)/include/sys/utsname.h \
$(top_srcdir)/include/sys/va_list.h \
$(top_srcdir)/include/sys/varargs.h \
$(top_srcdir)/include/sys/vfs.h \
diff --git a/include/sys/utsname.h b/include/sys/utsname.h
deleted file mode 100644
index 3d979c13a..000000000
--- a/include/sys/utsname.h
+++ /dev/null
@@ -1,34 +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 <[email protected]>.
- * 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_UTSNAME_H
-#define _SPL_UTSNAME_H
-
-#include <linux/utsname.h>
-
-extern struct new_utsname *__utsname(void);
-
-#define utsname (*__utsname())
-
-#endif /* SPL_UTSNAME_H */
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
index 039ee7319..3e8f874de 100644
--- a/module/spl/spl-generic.c
+++ b/module/spl/spl-generic.c
@@ -37,7 +37,6 @@
#include <sys/debug.h>
#include <sys/proc.h>
#include <sys/kstat.h>
-#include <sys/utsname.h>
#include <sys/file.h>
#include <linux/kmod.h>
#include <linux/proc_compat.h>
@@ -438,17 +437,6 @@ __put_task_struct(struct task_struct *t)
EXPORT_SYMBOL(__put_task_struct);
#endif /* HAVE_PUT_TASK_STRUCT */
-struct new_utsname *__utsname(void)
-{
-#ifdef HAVE_INIT_UTSNAME
- return init_utsname();
-#else
- return &system_utsname;
-#endif
-}
-EXPORT_SYMBOL(__utsname);
-
-
/*
* Read the unique system identifier from the /etc/hostid file.
*