]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
init: remove permanent string buffer from do_one_initcall()
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 23 May 2013 00:37:30 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:11 +0000 (16:09 +1000)
commit2da9b4413136619280c4156953cf8b05f3a15b9e
tree7dfedea1e1ce2f5567fb7c7f56952b19b799db53
parentf93a2ffdd522899bc5da9b2447861ffa1c16301b
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