[sh] smp-shx3.c: error: ignoring return value of 'request_irq', declared with attribute warn_unused_result

From: Naresh Kamboju
Date: Wed Dec 09 2020 - 12:28:02 EST


Linux next 20201209 tag the arch 'sh' defconfig build failed to build with
gcc-8, gcc-9 and gcc-10.

arch/sh/kernel/cpu/sh4a/smp-shx3.c: In function 'shx3_prepare_cpus':
arch/sh/kernel/cpu/sh4a/smp-shx3.c:76:3: error: ignoring return value
of 'request_irq', declared with attribute warn_unused_result
[-Werror=unused-result]
request_irq(104 + i, ipi_interrupt_handler,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IRQF_PERCPU, "IPI", (void *)(long)i);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx>

steps to reproduce:
-------------------
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.

tuxmake --runtime docker --target-arch sh --toolchain gcc-9 --kconfig defconfig

metadata:
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
target_arch: sh
toolchain: gcc-9
git_short_log: 2f1d5c77f13f (\Add linux-next specific files for 20201209\)
git_sha: 2f1d5c77f13fe64497c2e2601605f7d7ec4da9b1
git_describe: next-20201209
download_url: https://builds.tuxbuild.com/1lPwmsuPj4eW5gsLeObYvbXC3fw/

Full build log,
https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/899463251

--
Linaro LKFT
https://lkft.linaro.org