]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tty: serial: export serial_8250_warn_need_ioport
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 Oct 2024 10:36:32 +0000 (10:36 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 29 Oct 2024 16:39:12 +0000 (16:39 +0000)
The newly added function is used from a loadable module, so it has
to be exported the same way as the other function in this file:

ERROR: modpost: "serial_8250_warn_need_ioport" [drivers/tty/serial/8250/8250_pci.ko] undefined!

Fixes: 7c7e6c8924e7 ("tty: serial: handle HAS_IOPORT dependencies")
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/tty/serial/8250/8250_pcilib.c

index ec4d041778027a0c9f27facbb97c2b74819cfda3..3bdccf76f71d6a7de5a66e388fe2b9d88349086d 100644 (file)
@@ -19,6 +19,7 @@ int serial_8250_warn_need_ioport(struct pci_dev *dev)
 
        return -ENXIO;
 }
+EXPORT_SYMBOL_NS_GPL(serial_8250_warn_need_ioport, SERIAL_8250_PCI);
 
 int serial8250_pci_setup_port(struct pci_dev *dev, struct uart_8250_port *port,
                   u8 bar, unsigned int offset, int regshift)