From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 260DDC433EF for ; Sat, 2 Apr 2022 08:54:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 55A976B0071; Sat, 2 Apr 2022 04:54:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 50A4B6B0072; Sat, 2 Apr 2022 04:54:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F8CC6B0073; Sat, 2 Apr 2022 04:54:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0199.hostedemail.com [216.40.44.199]) by kanga.kvack.org (Postfix) with ESMTP id 31F6A6B0071 for ; Sat, 2 Apr 2022 04:54:10 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id E2A5118298064 for ; Sat, 2 Apr 2022 08:53:59 +0000 (UTC) X-FDA: 79311326598.19.6971E0B Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf04.hostedemail.com (Postfix) with ESMTP id E8EBC4000F for ; Sat, 2 Apr 2022 08:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648889639; x=1680425639; h=date:from:to:cc:subject:message-id:mime-version; bh=OsDbHI/cRT5Q/uLzBEUBDLB9FC/AmZf0xIpeMnx3+6Q=; b=ba2HRS/4mootdY1xOWEqY+QAIFxI4ZMxRE53IYpPUh+ka85x8MdA4WVS kaoSiYxRxuHWHj6YKihhO+MjoPcyZTbAPcD2w5JGso/xM0f6t3kzL0QzA CkU7Yqsk6Is9nICKdEA48Js6a61nA5H8nxzLiuM4TeG//ywRW5hic1ffC QXgAqOKkVxIdeSO0D6NmlYuqGxcq7QqtaY6ajNALCo2XnVoM1ZWbGmzw8 djem13aqFBLScPeNCpqTb6HGFFyYGZJJxKouNwgeknZgatGqyXk3eCMvm pxVcd/9AfZI/IDSpt65s6Dxb8TAO7wFja5gPSAG+dUq7/r8Gi0CkNyo32 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10304"; a="259988938" X-IronPort-AV: E=Sophos;i="5.90,229,1643702400"; d="scan'208";a="259988938" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2022 01:53:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,229,1643702400"; d="scan'208";a="587105430" Received: from lkp-server02.sh.intel.com (HELO 3231c491b0e2) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 02 Apr 2022 01:53:54 -0700 Received: from kbuild by 3231c491b0e2 with local (Exim 4.95) (envelope-from ) id 1naZW6-00026N-3G; Sat, 02 Apr 2022 08:53:54 +0000 Date: Sat, 2 Apr 2022 16:53:28 +0800 From: kernel test robot To: Kees Cook Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Masahiro Yamada , Andrew Morton , Linux Memory Management List Subject: drivers/clk/clk-fixed-mmio.c:26: undefined reference to `of_iomap' Message-ID: <202204021621.QxSalFbt-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="ba2HRS/4"; spf=none (imf04.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: E8EBC4000F X-Stat-Signature: mry8igttknc9k3z8msy5onfzoydhtxry X-HE-Tag: 1648889638-509543 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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 :::::: CC: Stephen Boyd -- 0-DAY CI Kernel Test Service https://01.org/lkp