lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAMhs-H_Gg+iLVJ43h5Boa5H1W6LieA_atiYYo+tRtw22bQZSLg@mail.gmail.com> Date: Fri, 8 Oct 2021 07:39:57 +0200 From: Sergio Paracuellos <sergio.paracuellos@...il.com> To: Stephen Rothwell <sfr@...b.auug.org.au> Cc: Greg KH <greg@...ah.com>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Linux Next Mailing List <linux-next@...r.kernel.org>, Thomas Bogendoerfer <tsbogend@...ha.franken.de> Subject: Re: linux-next: build failure after merge of the staging tree Hi Stephen, [+cc Thomas Bogendoerfer as mips maintainer] On Fri, Oct 8, 2021 at 6:15 AM Stephen Rothwell <sfr@...b.auug.org.au> wrote: > > Hi all, > > After merging the staging tree, today's linux-next build (mips > nlm_xlp_defconfig) failed like this: > > drivers/pci/pci.c:4210: undefined reference to `pci_remap_iospace' > > Caused by commit > > 9f76779f2418 ("MIPS: implement architecture-specific 'pci_remap_iospace()'") > > CONFIG_PCI_DRIVERS_GENERIC is not set for this build, so > arch/mips/pci/pci-generic.c is not built. I don't know what should be the correct fix for this. 'pci_remap_iospace' for mips is added in 'pci-generic.c' which in only compiled when 'CONFIG_PCI_DRIVERS_GENERIC' is selected. In mips there is also 'CONFIG_PCI_DRIVERS_LEGACY' option that include 'pci-legacy.c' and drivers in 'arch/mips/pci' are normally defining this 'CONFIG_PCI_DRIVERS_LEGACY'. For the failing build mips_nlm_xlp_defconfig, none of them are defined and code (I guess ./arch/mips/pci/pci-xlp.c) is just initializing PCI calling 'pcibios_init' and not using PCI core apis and 'pci_remap_iospace' at all like other drivers inside 'arch/mips/pci'. So I think the correct thing to do would be just move this mips architecture dependent define to be dependant of CONFIG_PCI_DRIVERS_GENERIC. The following patch would be enough: diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index 35270984a5f0..421231f55935 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h @@ -20,7 +20,9 @@ #include <linux/list.h> #include <linux/of.h> +#ifdef CONFIG_PCI_DRIVERS_GENERIC #define pci_remap_iospace pci_remap_iospace +#endif #ifdef CONFIG_PCI_DRIVERS_LEGACY Thomas, if you are ok with this, let me know and I'll send this patch to be added to staging tree for fixing this issue. Best regards, Sergio Paracuellos > > -- > Cheers, > Stephen Rothwell
Powered by blists - more mailing lists