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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FDB4C433EF for ; Thu, 14 Jul 2022 18:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+wzTB1SwP+40wBUyzkrbSrPfMni1sZ1bQeeN99Ntejk=; b=ULMnVfuDNstarb aXPpj6mY4PtGHe3AdsVxy1CIel7FCN8jAYkZXGrwHDFMEV0SzXRg3Ngvb7G0gIZo0nIvtgyV9fXTq 36BGuvhndm9/4PaHBs8LQVzY+kYrMrwE68mfYuAh32NyTKBr0+fKFBY91+Ruq+C8xR6finstW112b Z42BIWDt80PEKs87OEhkv4uLH86Y0U/ERViFekyv0wF/TU2XL5AeVvozf6e6hcM2KBpzZBILm/s+Y s3rQst5xMPXfQ4E4Nwd2AbYEETqu3UC+FcP4pys970Le/w8jbgqIgdE4kmn6BfNU5J+OU8DuHmltz Zw0qFKGZE0XtKdLIT9vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC42Y-00HPZK-Tl; Thu, 14 Jul 2022 18:58:23 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC42V-00HPWz-Ts for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 18:58:21 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id 3978DB81647; Thu, 14 Jul 2022 18:58:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7E84C34115; Thu, 14 Jul 2022 18:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657825093; bh=U+HabZePJJwRc+QTAmL3xyXjfIPAokxMHtpQkugjOlo=; h=From:To:Cc:Subject:Date:From; b=QhdVx2KoYRVmU510amPvni5m5MEUrL689trjQCEtCepQdL5koFNPwXanVZHM/gEKe AfUa/EsYxLpcnVqZ06BxeDYYjglk40OhNQ/Zf7Of1mYGVE3d55J89MgELPiTMF3shh EET790KIt1t7RHFGpO8a34qlYKOSleH3vvPNM34Aa0DVnuCiJ7QKEkkRLXWfJCwjFe /UZKHbej+/qM2rIKM8Rz3UZdutD/dhSjSuiZvacAH/pU+rmtNIrySDce21XyNCJvLm tX539ROI34b5mxXP/O34dw+jXDg8nKtbQRWq3AOfMQJlXVNQAhozltlBhPCb2OaSlK mIs3q/RBvSz2A== Received: by pali.im (Postfix) id 507421295; Thu, 14 Jul 2022 20:58:11 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: kernel test robot , kbuild-all@lists.01.org, Lorenzo Pieralisi , Bjorn Helgaas , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: ioremap: Fix compilation of code which use pci_remap_iospace() without CONFIG_MMU Date: Thu, 14 Jul 2022 20:57:00 +0200 Message-Id: <20220714185700.6137-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_115820_135991_7CC9FEEE X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Q3VzdG9tIEFSTSB2ZXJzaW9uIG9mIHBjaV9yZW1hcF9pb3NwYWNlKCkgaXMgaW1wbGVtZW50ZWQg b25seSBmb3IgTU1VCmtlcm5lbCBidWlsZHMuIFNvIGRvIG5vdCBkZWZpbmUgcGNpX3JlbWFwX2lv c3BhY2UoKSB3aXRob3V0IENPTkZJR19NTVUuCgpTZWUgY29tcGlsYXRpb24gZmFpbHVyZXM6Cmh0 dHBzOi8vbG9yZS5rZXJuZWwub3JnL3IvMjAyMTEyMDQwMTUwLnd2eUpaSVpPLWxrcEBpbnRlbC5j b20vCmh0dHBzOi8vbG9yZS5rZXJuZWwub3JnL3IvMjAyMTEyMjYxODAyLnU5aVhxZFdoLWxrcEBp bnRlbC5jb20vCmh0dHBzOi8vbG9yZS5rZXJuZWwub3JnL3IvMjAyMjAxMTMxNTI5LkEyczdyS1Fj LWxrcEBpbnRlbC5jb20vCmh0dHBzOi8vbG9yZS5rZXJuZWwub3JnL3IvMjAyMjAzMDkwMTQ3LjI0 Y1VMMERlLWxrcEBpbnRlbC5jb20vCgpGaXhlczogYmMwMjk3M2EwNmE2ICgiYXJtOiBpb3JlbWFw OiBJbXBsZW1lbnQgc3RhbmRhcmQgUENJIGZ1bmN0aW9uIHBjaV9yZW1hcF9pb3NwYWNlKCkiKQpS ZXBvcnRlZC1ieToga2VybmVsIHRlc3Qgcm9ib3QgPGxrcEBpbnRlb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L2lvLmgKaW5kZXggZWJhN2NiYzkz Yjg2Li40N2NmNzkyMjliN2MgMTAwNjQ0Ci0tLSBhL2FyY2gvYXJtL2luY2x1ZGUvYXNtL2lvLmgK KysrIGIvYXJjaC9hcm0vaW5jbHVkZS9hc20vaW8uaApAQCAtMTgwLDEwICsxODAsMTIgQEAgdm9p ZCBwY2lfaW9yZW1hcF9zZXRfbWVtX3R5cGUoaW50IG1lbV90eXBlKTsKIHN0YXRpYyBpbmxpbmUg dm9pZCBwY2lfaW9yZW1hcF9zZXRfbWVtX3R5cGUoaW50IG1lbV90eXBlKSB7fQogI2VuZGlmCiAK KyNpZmRlZiBDT05GSUdfTU1VCiBzdHJ1Y3QgcmVzb3VyY2U7CiAKICNkZWZpbmUgcGNpX3JlbWFw X2lvc3BhY2UgcGNpX3JlbWFwX2lvc3BhY2UKIGludCBwY2lfcmVtYXBfaW9zcGFjZShjb25zdCBz dHJ1Y3QgcmVzb3VyY2UgKnJlcywgcGh5c19hZGRyX3QgcGh5c19hZGRyKTsKKyNlbmRpZgogCiAv KgogICogUENJIGNvbmZpZ3VyYXRpb24gc3BhY2UgbWFwcGluZyBmdW5jdGlvbi4KLS0gCjIuMjAu MQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmxpbnV4 LWFybS1rZXJuZWwgbWFpbGluZyBsaXN0CmxpbnV4LWFybS1rZXJuZWxAbGlzdHMuaW5mcmFkZWFk Lm9yZwpodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xpbnV4LWFy bS1rZXJuZWwK From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4954281997534469687==" MIME-Version: 1.0 From: Pali Rohár To: kbuild-all@lists.01.org Subject: [PATCH] arm: ioremap: Fix compilation of code which use pci_remap_iospace() without CONFIG_MMU Date: Thu, 14 Jul 2022 20:57:00 +0200 Message-ID: <20220714185700.6137-1-pali@kernel.org> List-Id: --===============4954281997534469687== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Custom ARM version of pci_remap_iospace() is implemented only for MMU kernel builds. So do not define pci_remap_iospace() without CONFIG_MMU. See compilation failures: https://lore.kernel.org/r/202112040150.wvyJZIZO-lkp(a)intel.com/ https://lore.kernel.org/r/202112261802.u9iXqdWh-lkp(a)intel.com/ https://lore.kernel.org/r/202201131529.A2s7rKQc-lkp(a)intel.com/ https://lore.kernel.org/r/202203090147.24cUL0De-lkp(a)intel.com/ Fixes: bc02973a06a6 ("arm: ioremap: Implement standard PCI function pci_rem= ap_iospace()") Reported-by: kernel test robot Signed-off-by: Pali Roh=C3=A1r --- PING!!!! Is somebody interested in fixing these compile errors? As nobody answered to my emails where I proposed this fix more than half year ago and asked for opinion... https://lore.kernel.org/r/20211204022131.bmhla4gkph7s7hy2(a)pali/ https://lore.kernel.org/r/20211205123209.lyx76daqdwzqwex4(a)pali/ https://lore.kernel.org/r/20211226215135.blcnafbuwhrq5ram(a)pali/ https://lore.kernel.org/r/20220113134938.3tx7iiukphvazvsq(a)pali/ https://lore.kernel.org/r/20220308184851.jmw2xvrapy5wzwof(a)pali/ If nobody is interested then please STOP sending me these Intel "0-DAY CI Kernel Test Service" emails. Thanks! --- arch/arm/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index eba7cbc93b86..47cf79229b7c 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. -- = 2.20.1 --===============4954281997534469687==-- 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38304C43334 for ; Thu, 14 Jul 2022 18:58:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbiGNS63 (ORCPT ); Thu, 14 Jul 2022 14:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240868AbiGNS6Q (ORCPT ); Thu, 14 Jul 2022 14:58:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB9EC6B77A for ; Thu, 14 Jul 2022 11:58:14 -0700 (PDT) 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 70C5F621D1 for ; Thu, 14 Jul 2022 18:58:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7E84C34115; Thu, 14 Jul 2022 18:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657825093; bh=U+HabZePJJwRc+QTAmL3xyXjfIPAokxMHtpQkugjOlo=; h=From:To:Cc:Subject:Date:From; b=QhdVx2KoYRVmU510amPvni5m5MEUrL689trjQCEtCepQdL5koFNPwXanVZHM/gEKe AfUa/EsYxLpcnVqZ06BxeDYYjglk40OhNQ/Zf7Of1mYGVE3d55J89MgELPiTMF3shh EET790KIt1t7RHFGpO8a34qlYKOSleH3vvPNM34Aa0DVnuCiJ7QKEkkRLXWfJCwjFe /UZKHbej+/qM2rIKM8Rz3UZdutD/dhSjSuiZvacAH/pU+rmtNIrySDce21XyNCJvLm tX539ROI34b5mxXP/O34dw+jXDg8nKtbQRWq3AOfMQJlXVNQAhozltlBhPCb2OaSlK mIs3q/RBvSz2A== Received: by pali.im (Postfix) id 507421295; Thu, 14 Jul 2022 20:58:11 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: kernel test robot , kbuild-all@lists.01.org, Lorenzo Pieralisi , Bjorn Helgaas , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: ioremap: Fix compilation of code which use pci_remap_iospace() without CONFIG_MMU Date: Thu, 14 Jul 2022 20:57:00 +0200 Message-Id: <20220714185700.6137-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Custom ARM version of pci_remap_iospace() is implemented only for MMU kernel builds. So do not define pci_remap_iospace() without CONFIG_MMU. See compilation failures: https://lore.kernel.org/r/202112040150.wvyJZIZO-lkp@intel.com/ https://lore.kernel.org/r/202112261802.u9iXqdWh-lkp@intel.com/ https://lore.kernel.org/r/202201131529.A2s7rKQc-lkp@intel.com/ https://lore.kernel.org/r/202203090147.24cUL0De-lkp@intel.com/ Fixes: bc02973a06a6 ("arm: ioremap: Implement standard PCI function pci_remap_iospace()") Reported-by: kernel test robot Signed-off-by: Pali Rohár --- PING!!!! Is somebody interested in fixing these compile errors? As nobody answered to my emails where I proposed this fix more than half year ago and asked for opinion... https://lore.kernel.org/r/20211204022131.bmhla4gkph7s7hy2@pali/ https://lore.kernel.org/r/20211205123209.lyx76daqdwzqwex4@pali/ https://lore.kernel.org/r/20211226215135.blcnafbuwhrq5ram@pali/ https://lore.kernel.org/r/20220113134938.3tx7iiukphvazvsq@pali/ https://lore.kernel.org/r/20220308184851.jmw2xvrapy5wzwof@pali/ If nobody is interested then please STOP sending me these Intel "0-DAY CI Kernel Test Service" emails. Thanks! --- arch/arm/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index eba7cbc93b86..47cf79229b7c 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. -- 2.20.1