Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp204289rdf; Mon, 20 Nov 2023 23:23:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6jJqrgLYfNalyT3OA1QO2YjlXUJlK2mmVuv9RSyF1WXk7XphiVRILC84Aogp0mynNhHkU X-Received: by 2002:a17:902:f68a:b0:1cf:677d:964d with SMTP id l10-20020a170902f68a00b001cf677d964dmr3350547plg.25.1700551394797; Mon, 20 Nov 2023 23:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700551394; cv=none; d=google.com; s=arc-20160816; b=wrb3xsNZrrd9bNJ5gR33udSFQKo6lH6/rbkXmgnFaHkWzGnEGZLnv3R9BwZZBACagd +KWDnGaO6s7vlhR/SBBp0KKhxFuKbR6jNt+0aCyUB8ly11huHAYaO7e8MZ6gB/eMvTvZ eZL6lddBgNpRwhd9SeGfaQ7l0+njELpK9y9LgvDjEPFqrA4UYG+1JLvKRmZq0vFzKJX+ eBMq8v7Wo1+w0lXpDExnyvfsByafaN0h3YOO7c4949xnFWzEhmgV4r7pFZWwmTbcgHwa lAK+jEs79mhIP6Mmdqq0rhykFjnlDyR8QfixjOCpJscZ/NA209qwa5Nn+tHxlxsFPpAj sUzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature; bh=kR6RvNYBq7ncv1XC8Md/QRQP6Vi7+ciyP1tD9dczobk=; fh=N+WdjRVMUL4GDNxqp/L+CSbghPQmyP/32obX3kYJxWo=; b=dFO/LL+ecv8fdRLbkUFcJLW5B/qHcz32LAwhaEJxoYqrDNOU2rDBKGeXY0zcHcpzmc P2/vbA5p+JibPIT3v2hPxDqaL59o95HL71rRvM/HjN6oaL7LhlAUxYjvOEqESqK/pVrp o/skhGCbsFy8rcvt2oxyvDUT0vU0OaZG979TAD9znSaeXv2tJ8Cm+naCdmKJVTMNKj1/ SSFwYmZ+GYMRxsNVuLKVEwnhq5H/ZA2fMJhGIfa5q00nOj34H2wuft51FK1xV0asZfRe se5s3EcxnBUUAydw0U4tgRdo2LfWc+I7CycPGveuhb77PhnljSOjsVYulp6XRp2FJjg7 9C0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mMNLUTLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j9-20020a170903024900b001c1e1fe16c7si10111055plh.236.2023.11.20.23.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 23:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mMNLUTLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5890C80BC52C; Mon, 20 Nov 2023 23:23:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229481AbjKUHXA (ORCPT + 99 others); Tue, 21 Nov 2023 02:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjKUHW6 (ORCPT ); Tue, 21 Nov 2023 02:22:58 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 510849D for ; Mon, 20 Nov 2023 23:22:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EE98C433CA; Tue, 21 Nov 2023 07:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700551374; bh=rTUDuCw0+yacO1VkcLXeIh3RHyma9O/gexWOtY1atkE=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=mMNLUTLRp90G0p8qEBvndw7PFpfeyjlIgQ4HzPyhnjy1/62WeS+GNT4Iyn2aMsOrk JPFDHLAkbNzPeK9d41gITvmH8sUo7y62gvpS81jfH7NVZJSGe5h/mRQU6XW7xaxmCS TwhO/fvRchxY0+okPLx+/yvEJyKL5U7Wogicmj6zoMKlisrhLDHZh8gGWm8zb5LMdm X2aPuSgPYuSYlJn9pBg6AgvOmi+8fMeXAcD5XnMvkoOiXaHDQp1tnxuIof+cpWqDNB kSa/xPOwxKA5i4MBAXUQWz+ACx9BTCDdmCMgcVVTqKXfqI+2TuG6R76+OogI3OWeA5 iDJDo+ZlEz+5Q== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id DF16A27C0054; Tue, 21 Nov 2023 02:22:52 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 21 Nov 2023 02:22:52 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegkedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpeelvefgudeiheefledttedthfffgfekudegkeelffdtiedvgfevieet teekheffveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhguodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdduvdekhedujedtvdegqddvkeejtddtvdeigedqrghrnh gupeepkhgvrhhnvghlrdhorhhgsegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6A5E6B60089; Tue, 21 Nov 2023 02:22:50 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: <7f16795c-ec35-4fe5-86e7-6fb36b05cfc5@app.fastmail.com> In-Reply-To: <202311211441.4LgOiu32-lkp@intel.com> References: <20231120215945.52027-3-pstanner@redhat.com> <202311211441.4LgOiu32-lkp@intel.com> Date: Tue, 21 Nov 2023 08:22:29 +0100 From: "Arnd Bergmann" To: "kernel test robot" , "Philipp Stanner" , "Bjorn Helgaas" , "Andrew Morton" , "Randy Dunlap" , "Jason Gunthorpe" , "Eric Auger" , "Kent Overstreet" , "Niklas Schnelle" , "Neil Brown" , "John Sanpe" , "Dave Jiang" , "Yury Norov" , "Kees Cook" , "Masami Hiramatsu" , "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/ Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 23:23:12 -0800 (PST) On Tue, Nov 21, 2023, at 07:48, kernel test robot wrote: > > 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); From what I can tell looking at the header, I think we can just remove the "#elif defined(CONFIG_GENERIC_PCI_IOMAP)" bit entirely, as it no longer serves the purpose it originally had. It also looks like s390 is the only architecture that actually uses a custom implementation of pci_iomap*(), and this already has #define pci_iomap pci_iomap #define pci_iomap_range pci_iomap_range #define pci_iounmap pci_iounmap #define pci_iomap_wc pci_iomap_wc #define pci_iomap_wc_range pci_iomap_wc_range so the entire CONFIG_GENERIC_PCI_IOMAP symbol can probably be replaced with individual checks here, using CONFIG_PCI as the conditional in the Makefile. Arnd