]> git.karo-electronics.de Git - karo-tx-linux.git/commit
init: remove permanent string buffer from do_one_initcall()
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 7 Jun 2013 00:08:45 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:44 +0000 (15:42 +1000)
commit38c70f637b1ddaf99fd036d070d7ae0b8ecc47d5
treeda2a27f54e8de32771eaa420a6f3c71ae7d605cb
parent1a841575db23056fe59fef819c9a7c3ebe2bba15
init: remove permanent string buffer from do_one_initcall()

do_one_initcall() uses a 64 byte string buffer to save a message. This
buffer is declared static and is only used at boot up and when a module
is loaded. As 64 bytes is very small, and this function has very limited
scope, there's no reason to waste permanent memory with this string and
not just simply put it on the stack.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/main.c