aboutsummaryrefslogtreecommitdiffstats
path: root/init/version.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.osdl.org>2007-01-11 21:18:04 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2007-01-11 21:18:04 -0500
commitc71551ad309c46d9d2433a9b688491edbd10c806 (patch)
treec27e0dbdaf3b693d23b5f5885cab50ec6133c282 /init/version.c
parent0404f87f2e0a0aadbda47be0f54812671207492f (diff)
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 <olaf@aepfle.de> Cc: Jean Delvare <khali@linux-fr.org> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Andrey Borzenkov <arvidjaar@mail.ru> Cc: Andrew Morton <akpm@osdl.org> Acked-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init/version.c')
-rw-r--r--init/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/version.c b/init/version.c
index 55abe76f4ec9..6c01ec1cc48d 100644
--- a/init/version.c
+++ b/init/version.c
@@ -34,8 +34,8 @@ struct uts_namespace init_uts_ns = {
34}; 34};
35EXPORT_SYMBOL_GPL(init_uts_ns); 35EXPORT_SYMBOL_GPL(init_uts_ns);
36 36
37/* FIXED STRING! Don't touch! */ 37/* FIXED STRINGS! Don't touch! */
38const char __init linux_banner[] = 38const char linux_banner[] =
39 "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" 39 "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
40 LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; 40 LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
41 41