mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
__setup() handlers should return 1 to obsolete_checksetup() in init/main.c to indicate that the boot option has been handled. A return of 0 causes the boot option/value to be listed as an Unknown kernel parameter and added to init's (limited) argument or environment strings. Also, error return codes don't mean anything to obsolete_checksetup() -- only non-zero (usually 1) or zero. So return 1 from xive_off() and xive_store_eoi_cmdline(). Fixes:243e25112d("powerpc/xive: Native exploitation of the XIVE interrupt controller") Fixes:c21ee04f11("powerpc/xive: Add a kernel parameter for StoreEOI") [lore.kernel.org/r/[email protected]] Reported-by: Igor Zhbanov <[email protected]>: Signed-off-by: Randy Dunlap <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]