diff options
author | Brian Behlendorf <[email protected]> | 2014-10-17 15:10:19 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-10-17 15:11:41 -0700 |
commit | bb4dee3df2a191032201ce7f367be12fd898e08d (patch) | |
tree | ba97503550ad91ba72e88e877c1e1d0798b3c8bc /module/spl/spl-generic.c | |
parent | aa363c5c0507ed660f57655211df1fe2c30b380e (diff) |
Remove utsname() wrapper
There is no longer a need to wrap this because utsname() is provided
by the kernel and can be called directly. This will require a small
change in the ZFS code because utsname is expected to be a global
structure and not a function.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/spl/spl-generic.c')
-rw-r--r-- | module/spl/spl-generic.c | 12 |
1 files changed, 0 insertions, 12 deletions
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. * |