--- zzzz-none-000/linux-4.1.52/arch/mips/lib/iomap-pci.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/mips/lib/iomap-pci.c 2022-03-02 11:37:12.000000000 +0000 @@ -10,6 +10,7 @@ #include #include +#if !defined(CONFIG_BCM_KF_KERN_WARNING) || defined(CONFIG_NO_GENERIC_PCI_IOPORT_MAP) void __iomem *__pci_ioport_map(struct pci_dev *dev, unsigned long port, unsigned int nr) { @@ -39,6 +40,7 @@ return (void __iomem *) (ctrl->io_map_base + port); } +#endif void pci_iounmap(struct pci_dev *dev, void __iomem * addr) {