next: parisc: drivers/eisa/eisa-bus.c:436:19: error: conflicting types for 'eisa_init'; have 'int(void)'

From: Naresh Kamboju
Date: Thu Jun 29 2023 - 03:54:17 EST


Following build error noticed on parisc with defconfig with gcc-11 on
today's Linux next-20230629 tag.

Regressions found on parisc:

- build/gcc-11-defconfig

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

drivers/eisa/eisa-bus.c:436:19: error: conflicting types for
'eisa_init'; have 'int(void)'
436 | static int __init eisa_init(void)
| ^~~~~~~~~
In file included from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:68,
from include/linux/kernel.h:22,
from drivers/eisa/eisa-bus.c:8:
arch/parisc/include/asm/processor.h:324:13: note: previous declaration
of 'eisa_init' with type 'void(void)'
324 | extern void eisa_init(void);
| ^~~~~~~~~
make[5]: *** [scripts/Makefile.build:243: drivers/eisa/eisa-bus.o] Error 1

Links,
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230629/testrun/17921584/suite/build/test/gcc-11-defconfig/log
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230629/testrun/17921584/suite/build/test/gcc-11-defconfig/details/

Steps to reproduce:
============
# pip3 install -U --user tuxmake
#
# Or install a deb/rpm depending on the running distribution
# See https://tuxmake.org/install-deb/ or
# https://tuxmake.org/install-rpm/
#
# See https://docs.tuxmake.org/ for complete documentation.


tuxmake --runtime podman --target-arch parisc --toolchain gcc-11
--kconfig defconfig

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