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 6D678C54FB9 for ; Tue, 21 Nov 2023 06:50:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F17686B0416; Tue, 21 Nov 2023 01:50:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EC79D6B041D; Tue, 21 Nov 2023 01:50:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D67DE6B0425; Tue, 21 Nov 2023 01:50:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C73446B0416 for ; Tue, 21 Nov 2023 01:50:05 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9F343B5419 for ; Tue, 21 Nov 2023 06:50:05 +0000 (UTC) X-FDA: 81481036770.22.6D79FA4 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf21.hostedemail.com (Postfix) with ESMTP id CD6DA1C0016 for ; Tue, 21 Nov 2023 06:50:02 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M0hc1KJT; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1700549403; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Ng5e/D/wcWQZ2ZpKecxG9k7OYvpi+Rfh0oIyeAnhBU4=; b=Jdb9dLFkQuF9/oF77pf/di7Krk1buEJBZkz8PpL+oY4sV8PW1J7PBOFPI1GT8joi9CM8nr 4Tn5Tok/hgIFYxCXlpEAIsTOMeWxglQbunVq08eNcUH0NU9Z7uFt196E7W24P+OP/c/0TX +G8VT0UYuAozHh3zc55SPgVOJ6ZJ5f4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M0hc1KJT; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700549403; a=rsa-sha256; cv=none; b=siXHBnC6Gnrf/2++FmHwJHGgv2JaDrDQ2hACqSNQTTH3BXb9THmUWAxaVT+lSmPCEo+rUJ yuiitMe2jedeAZGinDKqmlL3TOO7P5eVx+v6FLArRQIo2IpOn1S3aNOizDhnaU0oDQU1UP xwGVyv5zZN8l/l26H10ph5sIPFcDyL4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700549402; x=1732085402; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zTuF8S9vTdqe6P2IGLvWlRUqXHAtyYNpdM18PW8Zm1A=; b=M0hc1KJT/C6XNTV+Wnia32gZngSkRhzAo3A+egJc92d81xzPC68RaLfP hVUgEOXDM46Bq9azbZNbRl3XhXLGSZYfaXm7KiTNLWUYFqCyluOdZsyYf tARxlgPNF9rJ64JnbyRqFF9sNRBgnMVBxlhElTHuFfefbgjDK01Bfxwg/ mQURB9hF335Ftm+xDmSpHi7mrF7zFkkwOGlDJFBXLfOdJUTPwhSFIptUF 75+M/1qniP7Fx/OrFPapb9qDnfMPSuugx9abwo/nePVS9efGr2r7NdVB1 P92m/aFy+S9/gY7Kw1+XwnkEKOU+nb6xhyex8LWduTcSRUTok71y02RLE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="382170554" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="382170554" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 22:50:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="14807874" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmviesa001.fm.intel.com with ESMTP; 20 Nov 2023 22:49:54 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5KZn-0007SY-2A; Tue, 21 Nov 2023 06:49:45 +0000 Date: Tue, 21 Nov 2023 14:48:09 +0800 From: kernel test robot To: Philipp Stanner , Bjorn Helgaas , Arnd Bergmann , Andrew Morton , Randy Dunlap , Jason Gunthorpe , Eric Auger , Kent Overstreet , Niklas Schnelle , NeilBrown , John Sanpe , Dave Jiang , Yury Norov , Kees Cook , "Masami Hiramatsu (Google)" , David Gow , Herbert Xu , Thomas Gleixner , "wuqiang.matt" , Jason Baron , Ben Dooks , Danilo Krummrich Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 1/4] lib: move pci_iomap.c to drivers/pci/ Message-ID: <202311211441.4LgOiu32-lkp@intel.com> References: <20231120215945.52027-3-pstanner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120215945.52027-3-pstanner@redhat.com> X-Rspamd-Queue-Id: CD6DA1C0016 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 4erpbksukguduyupbgiq79fuz4aj83s7 X-HE-T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mCSFaXBidrZ8LHoexGJk2xlzlKI8m5PlFaELwJJk6OaFfCCy0fZmdHc/45Jyl4y44O+6XMc7oUDmBZyRdEs2XGz9r8npHM8v0S89ZGreeXhRXpSgtIiZYNIYhLxvvMTWNAynknJi5nUTTEWCqSHxMWCNwIGYpPsfR9UVXhZTRhBOGgMNS0seslyoTWfrdlt0XgAxnr15Cr20Y+L5Ie4ZwWBoiO8cBzUVn+TdnYzmC3eWzZckzzy/3CL/CuNaTcnIMV9ozgZA+gYoVsgwPu+AXf1LmH2th1o9i4aOIZn/9YLEHOh9wHQWKbGJ/6VbWYsx0emcftCasWWKyZu1Ns56bXD64GIoCGTidGQxZLUVnJbM+5c2u3Jj4wrDhBkhVPizd71BDfho643xlLGX8mlikasaGFKVwK7p8z7wwRBgeneCbIwK9K8OaA2zkzQ1uGSx23ssmqpma2 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: List-Subscribe: List-Unsubscribe: Hi Philipp, kernel test robot noticed the following build errors: [auto build test ERROR on pci/next] [also build test ERROR on pci/for-linus linus/master v6.7-rc2 next-20231120] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Philipp-Stanner/lib-move-pci_iomap-c-to-drivers-pci/20231121-060258 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20231120215945.52027-3-pstanner%40redhat.com patch subject: [PATCH 1/4] lib: move pci_iomap.c to drivers/pci/ config: arm-spear3xx_defconfig (https://download.01.org/0day-ci/archive/20231121/202311211441.4LgOiu32-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211441.4LgOiu32-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311211441.4LgOiu32-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/pci/iomap.c:27:15: error: redefinition of 'pci_iomap_range' void __iomem *pci_iomap_range(struct pci_dev *dev, ^ include/asm-generic/pci_iomap.h:44:29: note: previous definition is here static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, ^ >> drivers/pci/iomap.c:43:10: error: call to undeclared function '__pci_ioport_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return __pci_ioport_map(dev, start, len); ^ drivers/pci/iomap.c:43:10: note: did you mean 'devm_ioport_map'? include/linux/io.h:38:16: note: 'devm_ioport_map' declared here void __iomem * devm_ioport_map(struct device *dev, unsigned long port, ^ >> drivers/pci/iomap.c:43:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion] return __pci_ioport_map(dev, start, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pci/iomap.c:67:15: error: redefinition of 'pci_iomap_wc_range' void __iomem *pci_iomap_wc_range(struct pci_dev *dev, ^ include/asm-generic/pci_iomap.h:50:29: note: previous definition is here static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, ^ drivers/pci/iomap.c:110:15: error: redefinition of 'pci_iomap' void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) ^ include/asm-generic/pci_iomap.h:35:29: note: previous definition is here static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) ^ drivers/pci/iomap.c:131:15: error: redefinition of 'pci_iomap_wc' void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen) ^ include/asm-generic/pci_iomap.h:40:29: note: previous definition is here static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) ^ 6 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for GENERIC_PCI_IOMAP Depends on [n]: PCI [=n] Selected by [y]: - ARM [=y] vim +/__pci_ioport_map +43 drivers/pci/iomap.c 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 11 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 12 /** eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 13 * pci_iomap_range - create a virtual mapping cookie for a PCI BAR 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 14 * @dev: PCI device that owns the BAR 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 15 * @bar: BAR number eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 16 * @offset: map memory at the given offset in BAR eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 17 * @maxlen: max length of the memory to map 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 18 * 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 19 * Using this function you will get a __iomem address to your device BAR. 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 20 * You can access it using ioread*() and iowrite*(). These functions hide 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 21 * the details if this is a MMIO or PIO address space and will just do what 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 22 * you expect from them in the correct way. 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 23 * 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 24 * @maxlen specifies the maximum length to map. If you want to get access to eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 25 * the complete BAR from offset to the end, pass %0 here. 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 26 * */ eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 27 void __iomem *pci_iomap_range(struct pci_dev *dev, eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 28 int bar, eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 29 unsigned long offset, eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 30 unsigned long maxlen) 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 31 { 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 32 resource_size_t start = pci_resource_start(dev, bar); 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 33 resource_size_t len = pci_resource_len(dev, bar); 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 34 unsigned long flags = pci_resource_flags(dev, bar); 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 35 eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 36 if (len <= offset || !start) 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 37 return NULL; eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 38 len -= offset; eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 39 start += offset; 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 40 if (maxlen && len > maxlen) 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 41 len = maxlen; 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 42 if (flags & IORESOURCE_IO) b923650b84068b lib/pci_iomap.c Michael S. Tsirkin 2012-01-30 @43 return __pci_ioport_map(dev, start, len); 92b19ff50e8f24 lib/pci_iomap.c Dan Williams 2015-08-10 44 if (flags & IORESOURCE_MEM) 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 45 return ioremap(start, len); 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 46 /* What? */ 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 47 return NULL; 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 48 } eb29d8d2aad706 lib/pci_iomap.c Michael S. Tsirkin 2013-05-29 49 EXPORT_SYMBOL(pci_iomap_range); 66eab4df288aae lib/pci_iomap.c Michael S. Tsirkin 2011-11-24 50 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki