Content-Type: multipart/mixed; boundary="===============0614875518570731544==" MIME-Version: 1.0 From: Bjorn Helgaas To: kbuild-all@lists.01.org Subject: Re: [PATCH] arm: ioremap: Fix compilation of code which use pci_remap_iospace() without CONFIG_MMU Date: Thu, 14 Jul 2022 15:04:43 -0500 Message-ID: <20220714200443.GA1036464@bhelgaas> In-Reply-To: <20220714185700.6137-1-pali@kernel.org> List-Id: --===============0614875518570731544== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [+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(a)bhelgaas On Thu, Jul 14, 2022 at 08:57:00PM +0200, Pali Roh=C3=A1r 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(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_r= emap_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 a= nd > 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 > = > = > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel(a)lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0614875518570731544==--