Re: ks-sa-rng.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-26 Thread Alexander Sverdlin
Hi!

On 27/11/2020 06:48, Herbert Xu wrote:
> On Fri, Nov 13, 2020 at 11:02:13PM +0800, kernel test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
>> master
>> head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
>> commit: 90c4b29eb1e555fee66f8329a18cb8a070090ad6 hwrng: ks-sa - Enable 
>> COMPILE_TEST
>> date:   12 months ago
>> config: s390-randconfig-r022-20201113 (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=90c4b29eb1e555fee66f8329a18cb8a070090ad6
>> git remote add linus 
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> git fetch --no-tags linus master
>> git checkout 90c4b29eb1e555fee66f8329a18cb8a070090ad6
>> # 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 
>>
>> All errors (new ones prefixed by >>):
> 
>>s390-linux-ld: drivers/char/hw_random/ks-sa-rng.o: in function 
>> `ks_sa_rng_probe':
 ks-sa-rng.c:(.text+0x2fa): undefined reference to 
 `devm_platform_ioremap_resource'
> 
> ---8<---
> This patch adds a dependency for KEYSTONE on HAS_IOMEM and OF to
> prevent COMPILE_TEST build failures.
> 
> Reported-by: kernel test robot 
> Signed-off-by: Herbert Xu 

Reviewed-by: Alexander Sverdlin 

> diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
> index ab33a2e17cdf..9ff4fb3236f7 100644
> --- a/drivers/char/hw_random/Kconfig
> +++ b/drivers/char/hw_random/Kconfig
> @@ -508,6 +508,7 @@ config HW_RANDOM_NPCM
>  
>  config HW_RANDOM_KEYSTONE
>   depends on ARCH_KEYSTONE || COMPILE_TEST
> + depends on HAS_IOMEM && OF
>   default HW_RANDOM
>   tristate "TI Keystone NETCP SA Hardware random number generator"
>   help
> 

-- 
Best regards,
Alexander Sverdlin.


Re: ks-sa-rng.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-26 Thread Herbert Xu
On Fri, Nov 13, 2020 at 11:02:13PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
> master
> head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
> commit: 90c4b29eb1e555fee66f8329a18cb8a070090ad6 hwrng: ks-sa - Enable 
> COMPILE_TEST
> date:   12 months ago
> config: s390-randconfig-r022-20201113 (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=90c4b29eb1e555fee66f8329a18cb8a070090ad6
> git remote add linus 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 90c4b29eb1e555fee66f8329a18cb8a070090ad6
> # 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 
> 
> All errors (new ones prefixed by >>):

>s390-linux-ld: drivers/char/hw_random/ks-sa-rng.o: in function 
> `ks_sa_rng_probe':
> >> ks-sa-rng.c:(.text+0x2fa): undefined reference to 
> >> `devm_platform_ioremap_resource'

---8<---
This patch adds a dependency for KEYSTONE on HAS_IOMEM and OF to
prevent COMPILE_TEST build failures.

Reported-by: kernel test robot 
Signed-off-by: Herbert Xu 

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index ab33a2e17cdf..9ff4fb3236f7 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -508,6 +508,7 @@ config HW_RANDOM_NPCM
 
 config HW_RANDOM_KEYSTONE
depends on ARCH_KEYSTONE || COMPILE_TEST
+   depends on HAS_IOMEM && OF
default HW_RANDOM
tristate "TI Keystone NETCP SA Hardware random number generator"
help
-- 
Email: Herbert Xu 
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


ks-sa-rng.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-13 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
commit: 90c4b29eb1e555fee66f8329a18cb8a070090ad6 hwrng: ks-sa - Enable 
COMPILE_TEST
date:   12 months ago
config: s390-randconfig-r022-20201113 (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=90c4b29eb1e555fee66f8329a18cb8a070090ad6
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 90c4b29eb1e555fee66f8329a18cb8a070090ad6
# 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 

All errors (new ones prefixed by >>):

   s390-linux-ld: drivers/irqchip/irq-al-fic.o: in function `al_fic_init_dt':
   irq-al-fic.c:(.init.text+0x5c): undefined reference to `of_iomap'
   s390-linux-ld: irq-al-fic.c:(.init.text+0x27a): undefined reference to 
`iounmap'
   s390-linux-ld: drivers/irqchip/irq-jcore-aic.o: in function 
`aic_irq_of_init':
   irq-jcore-aic.c:(.init.text+0x86): undefined reference to `of_iomap'
   s390-linux-ld: irq-jcore-aic.c:(.init.text+0xac): undefined reference to 
`iounmap'
   s390-linux-ld: drivers/irqchip/irq-renesas-irqc.o: in function `irqc_probe':
   irq-renesas-irqc.c:(.text+0x26a): undefined reference to 
`devm_platform_ioremap_resource'
   s390-linux-ld: drivers/irqchip/irq-renesas-h8s.o: in function 
`h8s_intc_of_init':
   irq-renesas-h8s.c:(.init.text+0xcc): undefined reference to `of_iomap'
   s390-linux-ld: drivers/irqchip/irq-uniphier-aidet.o: in function 
`uniphier_aidet_probe':
   irq-uniphier-aidet.c:(.text+0x356): undefined reference to 
`devm_platform_ioremap_resource'
   s390-linux-ld: drivers/phy/broadcom/phy-bcm-cygnus-pcie.o: in function 
`cygnus_pcie_phy_probe':
   phy-bcm-cygnus-pcie.c:(.text+0xb4): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o: in function 
`ns2_drd_phy_probe':
   phy-bcm-ns2-usbdrd.c:(.text+0x2ee): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x324): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x35a): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x390): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: 
drivers/phy/broadcom/phy-brcm-sata.o:phy-brcm-sata.c:(.text+0x114): more 
undefined references to `devm_ioremap_resource' follow
   s390-linux-ld: drivers/soc/bcm/brcmstb/common.o: in function 
`brcmstb_soc_device_early_init':
   common.c:(.init.text+0x6e): undefined reference to `of_iomap'
   s390-linux-ld: common.c:(.init.text+0xaa): undefined reference to `iounmap'
   s390-linux-ld: drivers/soc/bcm/brcmstb/biuctrl.o: in function 
`brcmstb_biuctrl_init':
   biuctrl.c:(.init.text+0x86): undefined reference to `of_iomap'
   s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function 
`dpaa2_console_close':
   dpaa2-console.c:(.text+0x74): undefined reference to `iounmap'
   s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function 
`dpaa2_console_probe':
   dpaa2-console.c:(.text+0xc8): undefined reference to `of_address_to_resource'
   s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function 
`dpaa2_generic_console_open.isra.0.constprop.0':
   dpaa2-console.c:(.text+0x17e): undefined reference to `ioremap'
   s390-linux-ld: dpaa2-console.c:(.text+0x1a6): undefined reference to 
`iounmap'
   s390-linux-ld: dpaa2-console.c:(.text+0x1ba): undefined reference to 
`ioremap'
   s390-linux-ld: dpaa2-console.c:(.text+0x210): undefined reference to 
`iounmap'
   s390-linux-ld: drivers/soc/mediatek/mtk-pmic-wrap.o: in function 
`pwrap_probe':
   mtk-pmic-wrap.c:(.text+0x146e): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: mtk-pmic-wrap.c:(.text+0x14fe): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: drivers/soc/mediatek/mtk-scpsys.o: in function `scpsys_probe':
   mtk-scpsys.c:(.text+0x63c): undefined reference to `devm_ioremap_resource'
   s390-linux-ld: drivers/soc/amlogic/meson-canvas.o: in function 
`meson_canvas_probe':
   meson-canvas.c:(.text+0x5e): undefined reference to `devm_ioremap_resource'
   s390-linux-ld: drivers/soc/amlogic/meson-clk-measure.o: in function 
`meson_msr_probe':
   meson-clk-measure.c:(.text+0xde): undefined reference to 
`devm_ioremap_resource'
   s390-linux-ld: drivers/soc/qcom/qcom-geni-se.o:qcom-geni-se.c:(.text+0x64): 
more undefined references to `devm_ioremap_resource' follow