]> 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)
commite3a5082d9fe7e6abc22c064776e6ec1c9277aeb4
tree83d3dc572683e7151e4f2ec9ecea5ff8ad5e007f
parente4d2ef931db1421e7466f2af9b3b4235026bfd17
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