linux-stable/arch/sh/kernel/cpu
Nick Desaulniers 9823ba8f17 sh: check return code of request_irq
[ Upstream commit 0e38225c92 ]

request_irq is marked __must_check, but the call in shx3_prepare_cpus
has a void return type, so it can't propagate failure to the caller.
Follow cues from hexagon and just print an error.

Fixes: c7936b9abc ("sh: smp: Hook in to the generic IPI handler for SH-X3 SMP.")
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Rich Felker <dalias@libc.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:47:16 +01:00
..
irq sh: cpu: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
sh2 sh: sh2: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
sh2a signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
sh3 sh: sh3: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
sh4 signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
sh4a sh: check return code of request_irq 2021-11-26 10:47:16 +01:00
sh5 signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
shmobile sh: shmobile: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
adc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock-cpg.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock.c sh: cpu: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
fpu.c signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL) 2021-11-17 09:48:46 +01:00
init.c sh: cpu: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pfc.c sh: cpu: convert to SPDX identifiers 2018-12-28 12:11:45 -08:00
proc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00