Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp849609imw; Thu, 14 Jul 2022 12:00:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbRWmm1nHUxh6Ff53Y/UuG0Ct222CwmqtqOnpd1TdYxTCSeItH2RhYlNo9L32NfAXDHW4r X-Received: by 2002:a17:906:8a5b:b0:72b:50a1:a72c with SMTP id gx27-20020a1709068a5b00b0072b50a1a72cmr10324968ejc.152.1657825225688; Thu, 14 Jul 2022 12:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657825225; cv=none; d=google.com; s=arc-20160816; b=Pfk7ZozNQQ+Q7f8zCkdny1OxS0rPsn2wjlo+MaK8wkWGTHTl1CoraN6k+jM/Rfq6nq p6/AncHk3UQX+/6BoyxFTzKpCAdwubzh5llcfzPKLYGlWyBV4tRsVB/obfSHIQD9gm73 95ORmb7ugw/CD87kXFDtMqp/jZD+0kIaoDjU76JxKRGoDQ3cv3iLItMdyHutNI64xcO3 nG9gjBfYGZeyhlgjgu2OQ2KcuOuYXOvVNWEfTnaRYm2UqMgR+vHnjpmJo1+nFuTtLUNz 99ZyO5or1FvdvnDpe0T7Y5++adOBsXxeYUmS1GUtv4lae7Mt6iulKla16wB9YBKh1htV YvVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=c7+VStl2NuTQr//UpEz93UwIn+Erbk1rcGEj8hQORqw=; b=bvlEXPwb7QV+fwRn/f2KQb3C6myvOeahlpB2z66nu+KXE1HpaFsuC0D3Xpw6p0yzA0 JiDDngM1+R4lXVrUJjmihzItzV3ZUWRd2PI9G6O8t+ko9v2nWLh5miKilRRmbct9qWAn ON3D65OwUatfL0tJvB/rs6jg2ckheFtOI6VP+/QSsAzBLzamwAV7kM100fnmHYtMgPqz MMjI2nGF7BPQ+URB2NbMVoKxt0DP02e1/t8y/LQlOUESBm8dA7W35aiUYVgV+/xXvUpN fxbkAcNLgX+pTGC0XIpFYZGu4UZXnNJ5E2kFnQjYO1dr5fb85QAGwPtmiah9hoZj0Ali GmrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QhdVx2Ko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc24-20020a1709078a1800b00715867834e2si2104828ejc.499.2022.07.14.11.59.59; Thu, 14 Jul 2022 12:00:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QhdVx2Ko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232654AbiGNS60 (ORCPT + 99 others); Thu, 14 Jul 2022 14:58:26 -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 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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