]> git.itanic.dy.fi Git - linux-stable/commit
sh: check return code of request_irq
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 22 Dec 2020 20:54:01 +0000 (12:54 -0800)
committerRich Felker <dalias@libc.org>
Fri, 17 Sep 2021 17:59:59 +0000 (13:59 -0400)
commit0e38225c92c7964482a8bb6b3e37fde4319e965c
treee9bf376d2938b8c37c40800af0a0df5c3f224254
parentca42bc4b7bda7c6d68f1cc97c27fc8ff7385c4c7
sh: check return code of request_irq

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: c7936b9abcf5 ("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>
arch/sh/kernel/cpu/sh4a/smp-shx3.c