mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +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:
parent
684f787474
commit
691d2bd733
@ -3,6 +3,8 @@
|
||||
|
||||
#include <linux/utsname.h>
|
||||
|
||||
#define utsname system_utsname
|
||||
extern struct new_utsname *__utsname(void);
|
||||
|
||||
#define utsname (*__utsname())
|
||||
|
||||
#endif /* SPL_UTSNAME_H */
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user