Skip to content

Commit c0dc921

Browse files
committed
tty: serial: export serial_8250_warn_need_ioport
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: 7c7e6c8 ("tty: serial: handle HAS_IOPORT dependencies") Reviewed-by: Niklas Schnelle <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 5a8b4b4 commit c0dc921

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/8250/8250_pcilib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ int serial_8250_warn_need_ioport(struct pci_dev *dev)
1919

2020
return -ENXIO;
2121
}
22+
EXPORT_SYMBOL_NS_GPL(serial_8250_warn_need_ioport, SERIAL_8250_PCI);
2223

2324
int serial8250_pci_setup_port(struct pci_dev *dev, struct uart_8250_port *port,
2425
u8 bar, unsigned int offset, int regshift)

0 commit comments

Comments
 (0)