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 59237C433EF for ; Sat, 4 Dec 2021 02:21:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D48C6B007E; Fri, 3 Dec 2021 21:21:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 482296B0080; Fri, 3 Dec 2021 21:21:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3493C6B0081; Fri, 3 Dec 2021 21:21:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0003.hostedemail.com [216.40.44.3]) by kanga.kvack.org (Postfix) with ESMTP id 22FAC6B007E for ; Fri, 3 Dec 2021 21:21:47 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D12CF8249980 for ; Sat, 4 Dec 2021 02:21:36 +0000 (UTC) X-FDA: 78878510592.05.9D97A28 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf27.hostedemail.com (Postfix) with ESMTP id 66AF67000081 for ; Sat, 4 Dec 2021 02:21:36 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 61C4062930; Sat, 4 Dec 2021 02:21:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A03A0C341C1; Sat, 4 Dec 2021 02:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638584494; bh=g69J893qnbuM1RxSfjT87zu2tgyTw8zQPKjt2k6hlJo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JU/LxqO+oCX/sDBpbxRokhTdwGagMpnZKcbrg+BYcwqmhGMKNCOVgQA52Xdq+2Bvx ip5RUz18dA+YPORYuAPm0zZ+W0EqL4zFqX38ZYbgEO/7Aq0KJxdDaMAl4ERlRKqFId vAHWbY5UkaeF6pY3rHhQYJeqZqprqAEWjJPbE6zg+Blak+iqErIzRLWFtJLSZwWZGQ SigstBuRr4TCJUtxtqWKem0OdNvgRRjLKRTA8ji0InT4A9XtQ6scizk4lmBclClDKY 7Ep46Ci6RV19sbS4HU6bBuzky1kuypZpW7+Pl6qIzaeHN9LNuwoZKu9iRvUMvwgRP9 AYJhOD0TlJNyw== Received: by pali.im (Postfix) id 3A6A81E13; Sat, 4 Dec 2021 03:21:31 +0100 (CET) Date: Sat, 4 Dec 2021 03:21:31 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Lorenzo Pieralisi , "Russell King (Oracle)" , Alexandre Belloni Subject: Re: [linux-next:master 3902/5128] pcie.c:undefined reference to `pci_remap_iospace' Message-ID: <20211204022131.bmhla4gkph7s7hy2@pali> References: <202112040150.wvyJZIZO-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202112040150.wvyJZIZO-lkp@intel.com> User-Agent: NeoMutt/20180716 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 66AF67000081 X-Stat-Signature: do376berygu71k678dn59yfo5r4kwuqk Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="JU/LxqO+"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf27.hostedemail.com: domain of pali@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=pali@kernel.org X-HE-Tag: 1638584496-741539 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: On Saturday 04 December 2021 01:41:28 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 7afeac307a9561e3a93682c1e7eb22f918aa1187 > commit: 9c8facde9206dc48060a2a016bae7f76b6328030 [3902/5128] arm: ioremap: Replace pci_ioremap_io() usage by pci_remap_iospace() > config: arm-buildonly-randconfig-r004-20211203 (https://download.01.org/0day-ci/archive/20211204/202112040150.wvyJZIZO-lkp@intel.com/config) > compiler: arm-linux-gnueabi-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/next/linux-next.git/commit/?id=9c8facde9206dc48060a2a016bae7f76b6328030 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 9c8facde9206dc48060a2a016bae7f76b6328030 > # 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=arm 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 >>): > > arm-linux-gnueabi-ld: arch/arm/mach-dove/pcie.o: in function `dove_pcie_setup': > >> pcie.c:(.init.text+0x170): undefined reference to `pci_remap_iospace' > arm-linux-gnueabi-ld: drivers/pci/pci.o: in function `devm_pci_remap_iospace': > (.text+0x1a84): undefined reference to `pci_remap_iospace' I guess that this error is caused by the fact that bot is trying to compile kernel for Marvell Dove board without CONFIG_MMU. I'm not sure if such configuration makes sense... Anyway File arch/arm/mm/ioremap.c where is defined ARM specific version of pci_remap_iospace() is compiled only when CONFIG_MMU is enabled. What about this patch? diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 0c70eb688a00..690f222fc4ef 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -180,10 +180,12 @@ void pci_ioremap_set_mem_type(int mem_type); static inline void pci_ioremap_set_mem_type(int mem_type) {} #endif +#ifdef CONFIG_MMU struct resource; #define pci_remap_iospace pci_remap_iospace int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr); +#endif /* * PCI configuration space mapping function. It will disable ARM specific version of pci_remap_iospace() and let to use generic version from drivers/pci/pci.c which always returns error on systems without CONFIG_MMU. > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org