Re: [linux-next:master 4620/4884] kernel/irq/generic-chip.c:210:9: error: call to undeclared function 'ioread32be'; ISO C99 and later do not support implicit function declarations

Arnd Bergmann
2023-12-05T12:43:28Z

On Tue, Dec 5, 2023, at 12:36, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 0f5f12ac05f36f117e793656c3f560625e927f1b
> commit: 17229c19e5bf0b5dc8b68dc4ca4e7012e7da4747 [4620/4884] mips:
> remove extraneous asm-generic/iomap.h include

> If you fix the issue in a separate patch/commit (i.e. not just a new
> version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes:
> https://lore.kernel.org/oe-kbuild-all/202312051917.ldwRetjX-lkp@intel.com/
>
> Note: the linux-next/master HEAD
> 0f5f12ac05f36f117e793656c3f560625e927f1b builds fine.
> It may have been fixed somewhere.
>
> All error/warnings (new ones prefixed by >>):
>
>>> kernel/irq/generic-chip.c:210:9: error: call to undeclared function 'ioread32be'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 210 | return ioread32be(addr);
> | ^

This patch depends on the asm-generic/io.h cleanup series by
Jiaxun Yang and Baoquan He, which I have in my asm-generic
tree.

I've added my patch on top now, as it fits the general idea,
so this can be dropped from -mm (and not merged into the mips
tree).

Arnd