]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Make builtin_cmdline const & variable length
authorPaul Burton <paul.burton@mips.com>
Sat, 12 Oct 2019 20:43:38 +0000 (20:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Sat, 12 Oct 2019 20:44:24 +0000 (13:44 -0700)
commit0db6b187fed3c2ff4b1f0c40c2ea306a49ff36c2
treee3cd933298f8329d9f3dd8e93aa206ba16c7253d
parent3b956126c5ed0e0fd180943224b5d7fe33168493
MIPS: Make builtin_cmdline const & variable length

We have no need for the builtin_cmdline array to be fixed at the length
of COMMAND_LINE_SIZE - we'll only copy out the string it contains up to
its NULL terminator anyway, and cap the size at COMMAND_LINE_SIZE when
copying into or concatenating with boot_command_line.

The string value is also constant, so we can declare it as such to place
it in the .init.rodata section.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kernel/setup.c