Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp904934imw; Thu, 14 Jul 2022 13:08:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vYUkl6b+mBl1O7+C9J+VzGEbNRybGrZyujRxotSsH7GygfQ/RwWjXFyP7IGr7hZ6fKidU5 X-Received: by 2002:a17:906:4789:b0:72b:fc8:23d6 with SMTP id cw9-20020a170906478900b0072b0fc823d6mr10112099ejc.656.1657829295525; Thu, 14 Jul 2022 13:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657829295; cv=none; d=google.com; s=arc-20160816; b=RIHKroKGwOYUt74RKnJCvcqDWSqaePgykdSlm4WHta8VtM7bbcel8ndwLHTOBKApN5 gsNgOaUnMGzp0tbxX0xTIPIVDmD1JpJDpqVdK+b1/OUeTD/e2/HbQj2lI5JdJrQUfNB2 Ep6EaVgvRlVlaGGHsB6N1MLniyb1ERFtknmSFLRfbPh9E8YayZKl0OpJl/g4zG+zwf2N db2uQx9WNwxWL9XeMzef++iAwjTNrNM2cSA111X9xy0IPfkuVkVDFDG7peEcji4Dlr1o jIfJ+6u40P/g/Rv3BAJppQb5+0LbY/MkPlrn7QAJlXk4J8kB2LABaK4wytm3RQkk9eUl VpDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=42cwS3/VsDFbn/NseJ59kOpw9KD16D6kySZqSbzr1s8=; b=qf21khgM2mawzRql+CUi56ywpLaI1DHs9WEKG+N0LtJNtejhv2ZIj9E71n4nD4YybQ 9wpPf2rlLjz7oT6vurB3j1DfCyrbaeTIg8aVAwLMnSMjYfRCdRy8epW2+nYLnGH5khz+ 6bkQUvK7fTCCfcgcyYnj7gzsFAgrZjnd2a3xcNNZKwQQEQjL0luRrG6tgSVmkekxmpwB z+NRG8iw3uaoan50Pqf/l0gxIaLudmQDbPuHc1/Yz+kqn1kZAbCEwSubfPltix2GVryz K/ogO+FU2V/DiCGNlPRox9rfeJ4HtAlU8fJOnJuSz2dUuCurv07dCRl33mz9LqC56nuI biYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TFjIUwbs; 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 u26-20020aa7d0da000000b0041e0cd418dasi3268489edo.115.2022.07.14.13.07.50; Thu, 14 Jul 2022 13:08:15 -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=TFjIUwbs; 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 S240400AbiGNUEw (ORCPT + 99 others); Thu, 14 Jul 2022 16:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240433AbiGNUEt (ORCPT ); Thu, 14 Jul 2022 16:04:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BFE05B794; Thu, 14 Jul 2022 13:04:47 -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 997366221C; Thu, 14 Jul 2022 20:04:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF069C34114; Thu, 14 Jul 2022 20:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657829086; bh=dJZgDK6qkBq1IwGZe1zOEzp1bWX9huz0JVAX615cico=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TFjIUwbs/oPqF3/CccRpHfjuHEbv1cpunaNRfTFlK/a/jf53P7ZY4Q/FQi29P5l2E 2ZTs+syenSEL6qljRTsj95VSFmS1NqMXMneeDvN3dImBJzRe4wvZNyeR8O2EBt2VSU UR/x21x7VMO6duebUmSfvLakZakb8uKNKbZBtoBRPxMQbaG1tA/o0jQy7nEjwr7Pul fOuQbe4KstDRjEuCnoy0w1FgRcOVNyXRfiO0ABHv9aSpJvzPMNkgEMQd5hQve+hf/U R7nuFhAmqPnKEftixFTpCNRM0wFu25rgYSq01rv1WT/oigRtX74RGHGzZApzc9XOmj KlLfMgEf2CYQQ== Date: Thu, 14 Jul 2022 15:04:43 -0500 From: Bjorn Helgaas To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: kernel test robot , kbuild-all@lists.01.org, Lorenzo Pieralisi , Bjorn Helgaas , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] arm: ioremap: Fix compilation of code which use pci_remap_iospace() without CONFIG_MMU Message-ID: <20220714200443.GA1036464@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220714185700.6137-1-pali@kernel.org> 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 [+cc linux-pci, update Lorenzo's email addr] Hi Pali, Thanks for cc'ing me. I think your previous notes didn't include linux-pci or me, so I missed them. It looks like bc02973a06a6 was merged via the PCI tree for v5.17 [1], so we should probably merge the fix the same way. Russell, let me know if you object. Otherwise, I put it on pci/misc for v5.20. [1] https://lore.kernel.org/r/20220114155608.GA557997@bhelgaas On Thu, Jul 14, 2022 at 08:57:00PM +0200, Pali Roh?r wrote: > 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 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel