All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'
@ 2022-03-25  5:09 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-03-25  5:09 UTC (permalink / raw)
  To: Kees Cook
  Cc: kbuild-all, linux-kernel, Arnd Bergmann, Nathan Chancellor,
	Nick Desaulniers, Masahiro Yamada, Andrew Morton,
	Linux Memory Management List

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@intel.com/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@intel.com>

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@amazon.com>
:::::: CC: Marc Zyngier <marc.zyngier@arm.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'
@ 2022-04-02  7:42 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-04-02  7:42 UTC (permalink / raw)
  To: Kees Cook
  Cc: kbuild-all, linux-kernel, Arnd Bergmann, Nathan Chancellor,
	Nick Desaulniers, Masahiro Yamada, Andrew Morton,
	Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   88e6c0207623874922712e162e25d9dafd39661e
commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.debug: make DEBUG_INFO selectable from a choice
date:   9 days ago
config: s390-randconfig-r012-20220402 (https://download.01.org/0day-ci/archive/20220402/202204021517.GCfe74Py-lkp@intel.com/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@intel.com>

All errors (new ones prefixed by >>):

   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'
   s390-linux-ld: drivers/clk/clk-fixed-mmio.o: in function `fixed_mmio_clk_setup':
   drivers/clk/clk-fixed-mmio.c:26: undefined reference to `of_iomap'
   s390-linux-ld: drivers/clk/clk-fixed-mmio.c:33: undefined reference to `iounmap'
   s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
   drivers/char/xillybus/xillybus_of.c:50: undefined reference to `devm_platform_ioremap_resource'
   s390-linux-ld: drivers/crypto/ccree/cc_driver.o: in function `init_cc_resources':
   drivers/crypto/ccree/cc_driver.c:355: undefined reference to `devm_ioremap_resource'
   s390-linux-ld: drivers/crypto/ccree/cc_debugfs.o: in function `cc_debugfs_init':
   drivers/crypto/ccree/cc_debugfs.c:80: undefined reference to `debugfs_create_regset32'
   s390-linux-ld: drivers/crypto/ccree/cc_debugfs.c:100: undefined reference to `debugfs_create_regset32'
   s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_base_init':
   drivers/clocksource/timer-of.c:159: undefined reference to `of_iomap'
   s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_base_exit':
   drivers/clocksource/timer-of.c:151: undefined reference to `iounmap'
>> s390-linux-ld: drivers/clocksource/timer-of.c:151: undefined reference to `iounmap'
   s390-linux-ld: drivers/clocksource/timer-microchip-pit64b.o: in function `mchp_pit64b_dt_init_timer':
   drivers/clocksource/timer-microchip-pit64b.c:436: undefined reference to `of_iomap'
   s390-linux-ld: drivers/clocksource/timer-microchip-pit64b.c:486: undefined reference to `iounmap'


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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-02  7:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25  5:09 drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap' kernel test robot
2022-04-02  7:42 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.