]> Git Repo - linux.git/commit
init/main.c: return 1 from handled __setup() functions
authorRandy Dunlap <[email protected]>
Wed, 23 Mar 2022 23:06:14 +0000 (16:06 -0700)
committerLinus Torvalds <[email protected]>
Thu, 24 Mar 2022 02:00:34 +0000 (19:00 -0700)
commitf9a40b0890658330c83c95511f9d6b396610defc
tree7c3d8dd5156d5753e24deb55f74bca0fbf96257d
parentabc7da58c4b388ab9f6a756c0f297c29d3af665f
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/[email protected]
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: Igor Zhbanov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/main.c
This page took 0.047201 seconds and 4 git commands to generate.