Re: ERROR: "devm_platform_ioremap_resource" undefined!

From: Andy Shevchenko
Date: Wed Mar 24 2021 - 06:56:45 EST


On Wed, Mar 24, 2021 at 01:58:06PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 7acac4b3196caee5e21fb5ea53f8bc124e6a16fc
> commit: a9c56721d6ae99b22e983d0722e6b1b53a11dd59 dmaengine: dw: platform: Use devm_platform_ioremap_resource()
> date: 1 year, 7 months ago
> config: s390-randconfig-r013-20210324 (attached as .config)
> compiler: s390-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9c56721d6ae99b22e983d0722e6b1b53a11dd59
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout a9c56721d6ae99b22e983d0722e6b1b53a11dd59
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> >> ERROR: "devm_platform_ioremap_resource" [drivers/dma/dw/dw_dmac.ko] undefined!

Because s390 does not have IOMEM (IIRC). I forgot how it's usually fixed.

Again IIRC it should be done somewhere in the generic files, otherwise we have
to have add 'depends on HAVE_IOMEM' everywhere.

Okay, seems it's not. Fine, I'll send a patch soon.

--
With Best Regards,
Andy Shevchenko