Commit c71551ad authored by Linus Torvalds's avatar Linus Torvalds

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 <>
Cc: Jean Delvare <>
Cc: Roman Zippel <>
Cc: Andrey Borzenkov <>
Cc: Andrew Morton <>
Acked-by: 's avatarAndy Whitcroft <>
Signed-off-by: 's avatarLinus Torvalds <>
parent 0404f87f
......@@ -34,8 +34,8 @@ struct uts_namespace 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 "@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment