Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pnp: isapnp: Export isapnp_read_byte again

The build of drivers/staging/gpib/hp_82341 driver was failing
with:

ERROR: modpost: "isapnp_read_byte"
[drivers/staging/gpib/hp_82341/hp_82341.ko] undefined!

because the symbol was not exported for modules.

There were no errors building with allyesconfig

The symbol was removed by
Link: https://lore.kernel.org/all/20051030202734.GN4180@stusta.de/
because it was no longer used by any mainline modules.

Export the symbol again.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/r/20241014162054.2b91b5af@canb.auug.org.au
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Rafael
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250124105900.27592-3-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dave Penkler and committed by
Greg Kroah-Hartman
fa757a84 03ec050c

+1
+1
drivers/pnp/isapnp/core.c
··· 843 843 EXPORT_SYMBOL(isapnp_present); 844 844 EXPORT_SYMBOL(isapnp_cfg_begin); 845 845 EXPORT_SYMBOL(isapnp_cfg_end); 846 + EXPORT_SYMBOL(isapnp_read_byte); 846 847 EXPORT_SYMBOL(isapnp_write_byte); 847 848 848 849 static int isapnp_get_resources(struct pnp_dev *dev)