drivers/clk/clk-fixed-mmio.c:26: 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:   88e6c0207623874922712e162e25d9dafd39661e
commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.debug: make DEBUG_INFO selectable from a choice
date:   9 days ago
config: s390-buildonly-randconfig-r001-20220402 (https://download.01.org/0day-ci/archive/20220402/202204021621.QxSalFbt-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: 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'


vim +26 drivers/clk/clk-fixed-mmio.c

50cc4caf531abb Jan Kotas 2018-12-13  17  
50cc4caf531abb Jan Kotas 2018-12-13  18  static struct clk_hw *fixed_mmio_clk_setup(struct device_node *node)
50cc4caf531abb Jan Kotas 2018-12-13  19  {
50cc4caf531abb Jan Kotas 2018-12-13  20  	struct clk_hw *clk;
50cc4caf531abb Jan Kotas 2018-12-13  21  	const char *clk_name = node->name;
50cc4caf531abb Jan Kotas 2018-12-13  22  	void __iomem *base;
50cc4caf531abb Jan Kotas 2018-12-13  23  	u32 freq;
50cc4caf531abb Jan Kotas 2018-12-13  24  	int ret;
50cc4caf531abb Jan Kotas 2018-12-13  25  
50cc4caf531abb Jan Kotas 2018-12-13 @26  	base = of_iomap(node, 0);
50cc4caf531abb Jan Kotas 2018-12-13  27  	if (!base) {
50cc4caf531abb Jan Kotas 2018-12-13  28  		pr_err("%pOFn: failed to map address\n", node);
50cc4caf531abb Jan Kotas 2018-12-13  29  		return ERR_PTR(-EIO);
50cc4caf531abb Jan Kotas 2018-12-13  30  	}
50cc4caf531abb Jan Kotas 2018-12-13  31  
50cc4caf531abb Jan Kotas 2018-12-13  32  	freq = readl(base);
50cc4caf531abb Jan Kotas 2018-12-13 @33  	iounmap(base);
50cc4caf531abb Jan Kotas 2018-12-13  34  	of_property_read_string(node, "clock-output-names", &clk_name);
50cc4caf531abb Jan Kotas 2018-12-13  35  
50cc4caf531abb Jan Kotas 2018-12-13  36  	clk = clk_hw_register_fixed_rate(NULL, clk_name, NULL, 0, freq);
50cc4caf531abb Jan Kotas 2018-12-13  37  	if (IS_ERR(clk)) {
50cc4caf531abb Jan Kotas 2018-12-13  38  		pr_err("%pOFn: failed to register fixed rate clock\n", node);
50cc4caf531abb Jan Kotas 2018-12-13  39  		return clk;
50cc4caf531abb Jan Kotas 2018-12-13  40  	}
50cc4caf531abb Jan Kotas 2018-12-13  41  
50cc4caf531abb Jan Kotas 2018-12-13  42  	ret = of_clk_add_hw_provider(node, of_clk_hw_simple_get, clk);
50cc4caf531abb Jan Kotas 2018-12-13  43  	if (ret) {
50cc4caf531abb Jan Kotas 2018-12-13  44  		pr_err("%pOFn: failed to add clock provider\n", node);
50cc4caf531abb Jan Kotas 2018-12-13  45  		clk_hw_unregister(clk);
50cc4caf531abb Jan Kotas 2018-12-13  46  		clk = ERR_PTR(ret);
50cc4caf531abb Jan Kotas 2018-12-13  47  	}
50cc4caf531abb Jan Kotas 2018-12-13  48  
50cc4caf531abb Jan Kotas 2018-12-13  49  	return clk;
50cc4caf531abb Jan Kotas 2018-12-13  50  }
50cc4caf531abb Jan Kotas 2018-12-13  51  

:::::: The code at line 26 was first introduced by commit
:::::: 50cc4caf531abb2075c6973451fccdaba9f02715 clk: Add Fixed MMIO clock driver

:::::: TO: Jan Kotas <jank@xxxxxxxxxxx>
:::::: CC: Stephen Boyd <sboyd@xxxxxxxxxx>

-- 
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