[PATCH v2] powerpc/4xx: cpm: fix return value of __setup handler
Michael Ellerman
patch-notifications at ellerman.id.au
Sun May 15 20:12:28 AEST 2022
On Mon, 2 May 2022 12:29:41 -0700, Randy Dunlap wrote:
> __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 cpm_powersave_off().
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/4xx: cpm: fix return value of __setup handler
https://git.kernel.org/powerpc/c/5bb99fd4090fe1acfdb90a97993fcda7f8f5a3d6
cheers
More information about the Linuxppc-dev
mailing list