mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Don't put "linux_banner" in the .init section
It might save a few bytes after bootup, but it causes the string to be linked in at the end of the final vmlinux image, which defeats the whole point of doing all this, namely allowing some broken user-space binaries to search for the kernel version string in the kernel binary. So just remove the __init specifier. Cc: Olaf Hering <[email protected]> Cc: Jean Delvare <[email protected]> Cc: Roman Zippel <[email protected]> Cc: Andrey Borzenkov <[email protected]> Cc: Andrew Morton <[email protected]> Acked-by: Andy Whitcroft <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0404f87f2e
commit
c71551ad30
1 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ struct uts_namespace init_uts_ns = {
|
|||
};
|
||||
EXPORT_SYMBOL_GPL(init_uts_ns);
|
||||
|
||||
/* FIXED STRING! Don't touch! */
|
||||
const char __init linux_banner[] =
|
||||
/* FIXED STRINGS! Don't touch! */
|
||||
const char linux_banner[] =
|
||||
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
|
||||
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue