linux/arch/powerpc/sysdev
Randy Dunlap d64e3eab75 powerpc/xive: fix return value of __setup handler
__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/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru]
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>:
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220313065936.4363-1-rdunlap@infradead.org
2022-03-16 11:34:07 +11:00
..
ge
xics powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
xive powerpc/xive: fix return value of __setup handler 2022-03-16 11:34:07 +11:00
6xx-suspend.S
cpm2.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
cpm2_pic.c
cpm2_pic.h
cpm_common.c powerpc/8xx: Don't set IMMR map anymore at boot 2020-05-26 22:22:21 +10:00
cpm_gpio.c
dart.h
dart_iommu.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
dcr-low.S powerpc/dcr: Use cmplwi instead of 3-argument cmpli 2021-10-28 22:29:25 +11:00
dcr.c
ehv_pic.c powerpc: Add missing linux/{of.h,irqdomain.h} include directives 2021-06-10 13:09:16 +01:00
fsl_85xx_cache_ctlr.h
fsl_85xx_cache_sram.c mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
fsl_85xx_l2ctlr.c
fsl_gtm.c powerpc/sysdev: fix incorrect use to determine if list is empty 2022-03-08 00:04:56 +11:00
fsl_lbc.c
fsl_mpic_err.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
fsl_mpic_timer_wakeup.c
fsl_msi.c powerpc/fsl_msi: Use msi_for_each_desc() 2021-12-16 22:22:18 +01:00
fsl_msi.h
fsl_pci.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
fsl_pci.h powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
fsl_pmc.c
fsl_rcpm.c
fsl_rio.c powerpc: Refactor verification of MSR_RI 2021-08-26 21:21:07 +10:00
fsl_rio.h
fsl_rmu.c
fsl_soc.c
fsl_soc.h
grackle.c
i8259.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
indirect_pci.c
ipic.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
ipic.h
Kconfig powerpc/4xx: Remove MSI support which never worked 2021-12-09 11:52:20 +01:00
Makefile powerpc: Remove Xilinx PPC405/PPC440 support 2020-05-28 23:24:34 +10:00
mmio_nvram.c
mpc5xxx_clocks.c
mpic.c powerpc/corenet: Change criteria to set MPIC_ENABLE_COREINT 2022-02-07 21:03:10 +11:00
mpic.h powerpc/pasemi: Add __init attribute to eligible functions 2021-12-23 22:33:14 +11:00
mpic_msgr.c powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe() 2020-11-19 14:50:14 +11:00
mpic_msi.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
mpic_timer.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
mpic_u3msi.c powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
msi_bitmap.c
of_rtc.c
pmi.c
rtc_cmos_setup.c
tsi108_dev.c powerpc/tsi108: make EXPORT_SYMBOL follow its function immediately 2021-11-25 11:25:32 +11:00
tsi108_pci.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
udbg_memcons.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00