mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Remove hw_serial, ddi_strtoul()
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13434
This commit is contained in:
@@ -43,15 +43,11 @@ static struct opensolaris_utsname hw_utsname = {
|
||||
.machine = MACHINE
|
||||
};
|
||||
|
||||
#ifndef KERNEL_STATIC
|
||||
char hw_serial[11] = "0";
|
||||
|
||||
utsname_t *
|
||||
utsname(void)
|
||||
{
|
||||
return (&hw_utsname);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
opensolaris_utsname_init(void *arg)
|
||||
|
||||
@@ -45,19 +45,6 @@ ddi_strtol(const char *str, char **nptr, int base, long *result)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result)
|
||||
{
|
||||
|
||||
if (str == hw_serial) {
|
||||
*result = prison0.pr_hostid;
|
||||
return (0);
|
||||
}
|
||||
|
||||
*result = strtoul(str, nptr, base);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
ddi_strtoull(const char *str, char **nptr, int base, unsigned long long *result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user