Skip to content

Commit 79d2e19

Browse files
arndbgregkh
authored andcommitted
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>
1 parent d99d65a commit 79d2e19

File tree

16 files changed

+16
-16
lines changed

16 files changed

+16
-16
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
obj-m += agilent_82350b.o
2+
obj-$(CONFIG_GPIB_AGILENT_82350B) += agilent_82350b.o
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
obj-m += agilent_82357a.o
2+
obj-$(CONFIG_GPIB_AGILENT_82357A) += agilent_82357a.o
33

44

drivers/staging/gpib/cb7210/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ccflags-$(CONFIG_GPIB_PCMCIA) := -DGPIB_PCMCIA
2-
obj-m += cb7210.o
2+
obj-$(CONFIG_GPIB_CB7210) += cb7210.o
33

44

drivers/staging/gpib/cec/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
obj-m += cec_gpib.o
2+
obj-$(CONFIG_GPIB_CEC_PCI) += cec_gpib.o
33

drivers/staging/gpib/common/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
obj-m += gpib_common.o
2+
obj-$(CONFIG_GPIB_COMMON) += gpib_common.o
33

44
gpib_common-objs := gpib_os.o iblib.o
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
obj-m += fluke_gpib.o
2+
obj-$(CONFIG_GPIB_FLUKE) += fluke_gpib.o
33

drivers/staging/gpib/gpio/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
obj-m += gpib_bitbang.o
2+
obj-$(CONFIG_GPIB_GPIO) += gpib_bitbang.o
33

44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
obj-m += hp82335.o
2+
obj-$(CONFIG_GPIB_HP82335) += hp82335.o
33

44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
obj-m += hp_82341.o
2+
obj-$(CONFIG_GPIB_HP82341) += hp_82341.o

drivers/staging/gpib/ines/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ccflags-$(CONFIG_GPIB_PCMCIA) := -DGPIB_PCMCIA
2-
obj-m += ines_gpib.o
2+
obj-$(CONFIG_GPIB_INES) += ines_gpib.o
33

44

0 commit comments

Comments
 (0)