]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: gpib: fix Makefiles
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Dec 2024 15:42:35 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2024 15:43:35 +0000 (16:43 +0100)
commit79d2e1919a2728ef49d938eb20ebd5903c14dfb0
treecfa4dc45065a0e61760994b957090f0174994b2a
parentd99d65aeddf437c052031043c96f94f93f0124d6
staging: gpib: fix Makefiles

Having gpib drivers built-in rather than as loadable modules causes
link failure because the drivers are never actually built:

arm-linux-gnueabi-ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_t1_delay':
fmh_gpib.c:(.text+0x3b0): undefined reference to `nec7210_t1_delay'
arm-linux-gnueabi-ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_serial_poll_status':
fmh_gpib.c:(.text+0x418): undefined reference to `nec7210_serial_poll_status'
arm-linux-gnueabi-ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_secondary_address':
fmh_gpib.c:(.text+0x57c): undefined reference to `nec7210_secondary_address'
arm-linux-gnueabi-ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_primary_address':
fmh_gpib.c:(.text+0x5ac): undefined reference to `nec7210_primary_address'

Change this to use the correct Makefile syntax, setting either obj-m or obj-y.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241212154245.1411411-2-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 files changed:
drivers/staging/gpib/agilent_82350b/Makefile
drivers/staging/gpib/agilent_82357a/Makefile
drivers/staging/gpib/cb7210/Makefile
drivers/staging/gpib/cec/Makefile
drivers/staging/gpib/common/Makefile
drivers/staging/gpib/eastwood/Makefile
drivers/staging/gpib/gpio/Makefile
drivers/staging/gpib/hp_82335/Makefile
drivers/staging/gpib/hp_82341/Makefile
drivers/staging/gpib/ines/Makefile
drivers/staging/gpib/lpvo_usb_gpib/Makefile
drivers/staging/gpib/nec7210/Makefile
drivers/staging/gpib/ni_usb/Makefile
drivers/staging/gpib/pc2/Makefile
drivers/staging/gpib/tms9914/Makefile
drivers/staging/gpib/tnt4882/Makefile