]> www.infradead.org Git - users/jedix/linux-maple.git/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>
Tue, 23 Feb 2021 22:06:42 +0000 (17:06 -0500)
commit1e5b1406fbd236dd505df4b8766d73613f5e7b91
tree00323d9f5c37ec91edf7c3db043e6b084a9a4927
parentb1deeeb93933d39098cf9b192ae0ac347e9bbd02
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