Re: stable-rc/queue/6.14: S390: devres.h:111:16: error: implicit declaration of function 'IOMEM_ERR_PTR' [-Werror=implicit-function-declaration]

From: Greg Kroah-Hartman
Date: Tue May 27 2025 - 10:48:31 EST


On Mon, May 26, 2025 at 04:59:54PM +0200, Arnd Bergmann wrote:
> On Mon, May 26, 2025, at 16:49, Naresh Kamboju wrote:
> > Regressions on S390 tinyconfig builds failing with gcc-13, gcc-8 and
> > clang-20 and clang-nightly tool chains on the stable-rc/queue/6.14.
> >
> > Regression Analysis:
> > - New regression? Yes
> > - Reproducible? Yes
> >
> > Build regression: S390 tinyconfig devres.h 'devm_ioremap_resource'
> > implicit declaration of function 'IOMEM_ERR_PTR'
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
> >
> >
> > Build log:
> > ---------
> > In file included from include/linux/device.h:31,
> > from include/linux/node.h:18,
> > from include/linux/cpu.h:17,
> > from arch/s390/kernel/traps.c:28:
> > include/linux/device/devres.h: In function 'devm_ioremap_resource':
> > include/linux/device/devres.h:111:16: error: implicit declaration of
> > function 'IOMEM_ERR_PTR' [-Werror=implicit-function-declaration]
> > 111 | return IOMEM_ERR_PTR(-EINVAL);
> > | ^~~~~~~~~~~~~
>
> The backport of
> a21cad931276 ("driver core: Split devres APIs to device/devres.h")
> also needs a backport of
> 18311a766c58 ("err.h: move IOMEM_ERR_PTR() to err.h")

Now queued up, thanks.

greg k-h