drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   34af78c4e616c359ed428d79fe4758a35d2c5473
commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.debug: make DEBUG_INFO selectable from a choice
date:   27 hours ago
config: s390-randconfig-r044-20220325 (https://download.01.org/0day-ci/archive/20220325/202203251340.vhdRFCvH-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 11.2.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=f9b3cd24578401e7a392974b3353277286e49cee
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f9b3cd24578401e7a392974b3353277286e49cee
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
   kernel/dma/coherent.c:48: undefined reference to `memremap'
   s390-linux-ld: kernel/dma/coherent.c:71: undefined reference to `memunmap'
   s390-linux-ld: kernel/dma/coherent.o: in function `dma_release_coherent_memory':
   kernel/dma/coherent.c:82: undefined reference to `memunmap'
   s390-linux-ld: drivers/irqchip/irq-al-fic.o: in function `al_fic_init_dt':
>> drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'
>> s390-linux-ld: drivers/irqchip/irq-al-fic.c:282: undefined reference to `iounmap'


vim +252 drivers/irqchip/irq-al-fic.c

1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  237  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  238  static int __init al_fic_init_dt(struct device_node *node,
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  239  				 struct device_node *parent)
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  240  {
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  241  	int ret;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  242  	void __iomem *base;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  243  	unsigned int parent_irq;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  244  	struct al_fic *fic;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  245  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  246  	if (!parent) {
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  247  		pr_err("%s: unsupported - device require a parent\n",
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  248  		       node->name);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  249  		return -EINVAL;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  250  	}
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  251  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10 @252  	base = of_iomap(node, 0);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  253  	if (!base) {
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  254  		pr_err("%s: fail to map memory\n", node->name);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  255  		return -ENOMEM;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  256  	}
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  257  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  258  	parent_irq = irq_of_parse_and_map(node, 0);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  259  	if (!parent_irq) {
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  260  		pr_err("%s: fail to map irq\n", node->name);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  261  		ret = -EINVAL;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  262  		goto err_unmap;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  263  	}
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  264  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  265  	fic = al_fic_wire_init(node,
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  266  			       base,
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  267  			       node->name,
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  268  			       parent_irq);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  269  	if (IS_ERR(fic)) {
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  270  		pr_err("%s: fail to initialize irqchip (%lu)\n",
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  271  		       node->name,
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  272  		       PTR_ERR(fic));
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  273  		ret = PTR_ERR(fic);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  274  		goto err_irq_dispose;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  275  	}
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  276  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  277  	return 0;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  278  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  279  err_irq_dispose:
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  280  	irq_dispose_mapping(parent_irq);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  281  err_unmap:
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10 @282  	iounmap(base);
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  283  
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  284  	return ret;
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  285  }
1eb77c3bcdb70f2 Talel Shenhar 2019-06-10  286  

:::::: The code at line 252 was first introduced by commit
:::::: 1eb77c3bcdb70f2501f419b3da45b19acaf01072 irqchip/al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver

:::::: TO: Talel Shenhar <talel@xxxxxxxxxx>
:::::: CC: Marc Zyngier <marc.zyngier@xxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux