lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 2 Apr 2022 15:42:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kees Cook <keescook@...omium.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Arnd Bergmann <arnd@...db.de>,
        Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Masahiro Yamada <masahiroy@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ