Blame view

init/version.c 1.27 KB
457c89965   Thomas Gleixner   treewide: Add SPD...
1
  // SPDX-License-Identifier: GPL-2.0-only
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
4
5
6
7
8
  /*
   *  linux/init/version.c
   *
   *  Copyright (C) 1992  Theodore Ts'o
   *
   *  May be freely distributed as part of Linux.
   */
920459540   Sam Ravnborg   kbuild: move comp...
9
  #include <generated/compile.h>
9afb719e7   Laura Abbott   kbuild: Add build...
10
  #include <linux/build-salt.h>
e4f02fdab   Masahiro Yamada   init/version.c: i...
11
  #include <linux/export.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
12
13
  #include <linux/uts.h>
  #include <linux/utsname.h>
273b281fa   Sam Ravnborg   kbuild: move utsr...
14
  #include <generated/utsrelease.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
  #include <linux/version.h>
0bb80f240   David Howells   proc: Split the n...
16
  #include <linux/proc_ns.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17

197dcffc8   Daniel Guilak   init/version.c: d...
18
  #ifndef CONFIG_KALLSYMS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
20
  #define version(a) Version_ ## a
  #define version_string(a) version(a)
277e2c695   Daniel Guilak   init/version.c: s...
21
  extern int version_string(LINUX_VERSION_CODE);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
  int version_string(LINUX_VERSION_CODE);
197dcffc8   Daniel Guilak   init/version.c: d...
23
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
24

4865ecf13   Serge E. Hallyn   [PATCH] namespace...
25
  struct uts_namespace init_uts_ns = {
1e24edca0   Peter Zijlstra   locking/atomic, k...
26
  	.kref = KREF_INIT(2),
4865ecf13   Serge E. Hallyn   [PATCH] namespace...
27
28
29
30
31
32
33
34
  	.name = {
  		.sysname	= UTS_SYSNAME,
  		.nodename	= UTS_NODENAME,
  		.release	= UTS_RELEASE,
  		.version	= UTS_VERSION,
  		.machine	= UTS_MACHINE,
  		.domainname	= UTS_DOMAINNAME,
  	},
59607db36   Serge E. Hallyn   userns: add a use...
35
  	.user_ns = &init_user_ns,
435d5f4bb   Al Viro   common object emb...
36
  	.ns.inum = PROC_UTS_INIT_INO,
33c429405   Al Viro   copy address of p...
37
38
39
  #ifdef CONFIG_UTS_NS
  	.ns.ops = &utsns_operations,
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
40
  };
4865ecf13   Serge E. Hallyn   [PATCH] namespace...
41
  EXPORT_SYMBOL_GPL(init_uts_ns);
3eb3c740f   Roman Zippel   [PATCH] fix linux...
42

c71551ad3   Linus Torvalds   Don't put "linux_...
43
44
  /* FIXED STRINGS! Don't touch! */
  const char linux_banner[] =
3eb3c740f   Roman Zippel   [PATCH] fix linux...
45
46
47
48
49
50
51
52
53
  	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
  	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "
  ";
  
  const char linux_proc_banner[] =
  	"%s version %s"
  	" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
  	" (" LINUX_COMPILER ") %s
  ";
9afb719e7   Laura Abbott   kbuild: Add build...
54
55
  
  BUILD_SALT;