diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2022-03-24 00:06:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-24 03:00:34 +0100 |
commit | f9a40b0890658330c83c95511f9d6b396610defc (patch) | |
tree | 7c3d8dd5156d5753e24deb55f74bca0fbf96257d /include | |
parent | init.h: improve __setup and early_param documentation (diff) | |
download | linux-f9a40b0890658330c83c95511f9d6b396610defc.tar.xz linux-f9a40b0890658330c83c95511f9d6b396610defc.zip |
init/main.c: return 1 from handled __setup() functions
initcall_blacklist() should return 1 to indicate that it handled its
cmdline arguments.
set_debug_rodata() should return 1 to indicate that it handled its
cmdline arguments. Print a warning if the option string is invalid.
This prevents these strings from being added to the 'init' program's
environment as they are not init arguments/parameters.
Link: https://lkml.kernel.org/r/20220221050901.23985-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions