diff options
Diffstat (limited to 'init/version.c')
-rw-r--r-- | init/version.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/init/version.c b/init/version.c index e290802c6bd2..8f28344d9c70 100644 --- a/init/version.c +++ b/init/version.c | |||
@@ -12,22 +12,27 @@ | |||
12 | #include <linux/utsname.h> | 12 | #include <linux/utsname.h> |
13 | #include <linux/utsrelease.h> | 13 | #include <linux/utsrelease.h> |
14 | #include <linux/version.h> | 14 | #include <linux/version.h> |
15 | #include <linux/sched.h> | ||
15 | 16 | ||
16 | #define version(a) Version_ ## a | 17 | #define version(a) Version_ ## a |
17 | #define version_string(a) version(a) | 18 | #define version_string(a) version(a) |
18 | 19 | ||
19 | int version_string(LINUX_VERSION_CODE); | 20 | int version_string(LINUX_VERSION_CODE); |
20 | 21 | ||
21 | struct new_utsname system_utsname = { | 22 | struct uts_namespace init_uts_ns = { |
22 | .sysname = UTS_SYSNAME, | 23 | .kref = { |
23 | .nodename = UTS_NODENAME, | 24 | .refcount = ATOMIC_INIT(2), |
24 | .release = UTS_RELEASE, | 25 | }, |
25 | .version = UTS_VERSION, | 26 | .name = { |
26 | .machine = UTS_MACHINE, | 27 | .sysname = UTS_SYSNAME, |
27 | .domainname = UTS_DOMAINNAME, | 28 | .nodename = UTS_NODENAME, |
29 | .release = UTS_RELEASE, | ||
30 | .version = UTS_VERSION, | ||
31 | .machine = UTS_MACHINE, | ||
32 | .domainname = UTS_DOMAINNAME, | ||
33 | }, | ||
28 | }; | 34 | }; |
29 | 35 | EXPORT_SYMBOL_GPL(init_uts_ns); | |
30 | EXPORT_SYMBOL(system_utsname); | ||
31 | 36 | ||
32 | const char linux_banner[] = | 37 | const char linux_banner[] = |
33 | "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" | 38 | "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" |