mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Update utsname to use proper compatible interface to avoid API issues.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@123 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <sys/debug.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/kstat.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <linux/kmod.h>
|
||||
|
||||
#ifdef DEBUG_SUBSYSTEM
|
||||
@@ -94,6 +95,12 @@ ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result)
|
||||
}
|
||||
EXPORT_SYMBOL(ddi_strtoul);
|
||||
|
||||
struct new_utsname *__utsname(void)
|
||||
{
|
||||
return init_utsname();
|
||||
}
|
||||
EXPORT_SYMBOL(__utsname);
|
||||
|
||||
static int
|
||||
set_hostid(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user