Skip to contentSkip to conversation

tty: serial: export serial_8250_warn_need_ioport

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 29, 2024 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: serial: export serial_8250_warn_need_ioport

From: Arnd Bergmann <[email protected]>

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")

---
The build regression is currently part of my asm-generic tree, so I've applied this fixup on top.

 drivers/tty/serial/8250/8250_pcilib.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/8250/8250_pcilib.c +1 -0
index ec4d04177802..3bdccf76f71d 100644
@@ -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)
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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")

---
The build regression is currently part of my asm-generic tree, so I've applied this fixup on top.

 drivers/tty/serial/8250/8250_pcilib.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/8250/8250_pcilib.c +0 -0
index ec4d04177802..3bdccf76f71d 100644

drivers/tty/serial/8250/8250_pcilib.c int serial_8250_warn_need_ioport(struct pci_dev *dev) · line 25

Quoted 7 lines
drivers/tty/serial/8250/8250_pcilib.c +1 -0
@@ -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)

Looks like I forgot to try the last version plus the temporarily removed !S390 with allmodconfig instead of allyesconfig.

Thanks for the fix!