linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Arnd Bergmann <arnd@arndb.de>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap'
Date: Sat, 2 Apr 2022 15:42:04 +0800	[thread overview]
Message-ID: <202204021517.GCfe74Py-lkp@intel.com> (raw)

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

             reply	other threads:[~2022-04-02  7:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02  7:42 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-25  5:09 drivers/irqchip/irq-al-fic.c:252: undefined reference to `of_iomap' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204021517.GCfe74Py-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).