]> git.baikalelectronics.ru Git - kernel.git/commit
init: remove permanent string buffer from do_one_initcall()
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 3 Jul 2013 22:05:37 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:45 +0000 (16:07 -0700)
commitc5ca81ab3b7a598157b54af86ce019c4c2074c88
tree83d3dc572683e7151e4f2ec9ecea5ff8ad5e007f
parent276e048dc58187162c28a6032dc3145183be62e0
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c