mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 01:10:39 -05:00
Revert previous attempts at messing with the linux banner string and simply use a separate format string for proc. Signed-off-by: Roman Zippel <[email protected]> Acked-by: Olaf Hering <[email protected]> Acked-by: Jean Delvare <[email protected]> Cc: Andrey Borzenkov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Andy Whitcroft <[email protected]> Cc: Herbert Poetzl <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
45 lines
1 KiB
C
45 lines
1 KiB
C
/*
|
|
* linux/init/version.c
|
|
*
|
|
* Copyright (C) 1992 Theodore Ts'o
|
|
*
|
|
* May be freely distributed as part of Linux.
|
|
*/
|
|
|
|
#include <linux/compile.h>
|
|
#include <linux/module.h>
|
|
#include <linux/uts.h>
|
|
#include <linux/utsname.h>
|
|
#include <linux/utsrelease.h>
|
|
#include <linux/version.h>
|
|
#include <linux/sched.h>
|
|
|
|
#define version(a) Version_ ## a
|
|
#define version_string(a) version(a)
|
|
|
|
int version_string(LINUX_VERSION_CODE);
|
|
|
|
struct uts_namespace init_uts_ns = {
|
|
.kref = {
|
|
.refcount = ATOMIC_INIT(2),
|
|
},
|
|
.name = {
|
|
.sysname = UTS_SYSNAME,
|
|
.nodename = UTS_NODENAME,
|
|
.release = UTS_RELEASE,
|
|
.version = UTS_VERSION,
|
|
.machine = UTS_MACHINE,
|
|
.domainname = UTS_DOMAINNAME,
|
|
},
|
|
};
|
|
EXPORT_SYMBOL_GPL(init_uts_ns);
|
|
|
|
/* FIXED STRING! Don't touch! */
|
|
const char __init linux_banner[] =
|
|
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
|
|
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
|
|
|
|
const char linux_proc_banner[] =
|
|
"%s version %s"
|
|
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
|
|
" (" LINUX_COMPILER ") %s\n";
|