linux-mm.kvack.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/clk/clk-fixed-mmio.c:26: undefined reference to `of_iomap'
Date: Sat, 2 Apr 2022 16:53:28 +0800	[thread overview]
Message-ID: <202204021621.QxSalFbt-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-buildonly-randconfig-r001-20220402 (https://download.01.org/0day-ci/archive/20220402/202204021621.QxSalFbt-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/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@cadence.com>
:::::: CC: Stephen Boyd <sboyd@kernel.org>

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


                 reply	other threads:[~2022-04-02  8:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202204021621.QxSalFbt-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