18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  linux/init/version.c
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 1992  Theodore Ts'o
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *  May be freely distributed as part of Linux.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <generated/compile.h>
118c2ecf20Sopenharmony_ci#include <linux/build-salt.h>
128c2ecf20Sopenharmony_ci#include <linux/export.h>
138c2ecf20Sopenharmony_ci#include <linux/uts.h>
148c2ecf20Sopenharmony_ci#include <linux/utsname.h>
158c2ecf20Sopenharmony_ci#include <generated/utsrelease.h>
168c2ecf20Sopenharmony_ci#include <linux/version.h>
178c2ecf20Sopenharmony_ci#include <linux/proc_ns.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifndef CONFIG_KALLSYMS
208c2ecf20Sopenharmony_ci#define version(a) Version_ ## a
218c2ecf20Sopenharmony_ci#define version_string(a) version(a)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern int version_string(LINUX_VERSION_CODE);
248c2ecf20Sopenharmony_ciint version_string(LINUX_VERSION_CODE);
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cistruct uts_namespace init_uts_ns = {
288c2ecf20Sopenharmony_ci	.kref = KREF_INIT(2),
298c2ecf20Sopenharmony_ci	.name = {
308c2ecf20Sopenharmony_ci		.sysname	= UTS_SYSNAME,
318c2ecf20Sopenharmony_ci		.nodename	= UTS_NODENAME,
328c2ecf20Sopenharmony_ci		.release	= UTS_RELEASE,
338c2ecf20Sopenharmony_ci		.version	= UTS_VERSION,
348c2ecf20Sopenharmony_ci		.machine	= UTS_MACHINE,
358c2ecf20Sopenharmony_ci		.domainname	= UTS_DOMAINNAME,
368c2ecf20Sopenharmony_ci	},
378c2ecf20Sopenharmony_ci	.user_ns = &init_user_ns,
388c2ecf20Sopenharmony_ci	.ns.inum = PROC_UTS_INIT_INO,
398c2ecf20Sopenharmony_ci#ifdef CONFIG_UTS_NS
408c2ecf20Sopenharmony_ci	.ns.ops = &utsns_operations,
418c2ecf20Sopenharmony_ci#endif
428c2ecf20Sopenharmony_ci};
438c2ecf20Sopenharmony_ciEXPORT_SYMBOL_GPL(init_uts_ns);
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/* FIXED STRINGS! Don't touch! */
468c2ecf20Sopenharmony_ciconst char linux_banner[] =
478c2ecf20Sopenharmony_ci	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
488c2ecf20Sopenharmony_ci	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciconst char linux_proc_banner[] =
518c2ecf20Sopenharmony_ci	"%s version %s"
528c2ecf20Sopenharmony_ci	" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
538c2ecf20Sopenharmony_ci	" (" LINUX_COMPILER ") %s\n";
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciBUILD_SALT;
56