]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: make global 'usec_diff' functions static
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Dec 2024 15:42:34 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2024 15:43:35 +0000 (16:43 +0100)
commitd99d65aeddf437c052031043c96f94f93f0124d6
tree5d734199512f1849b6d64abaecc23354b835600b
parent8c41fae53016c2c9796441148c08b754c4e7dfc8
staging: gpib: make global 'usec_diff' functions static

Trying to build both gpib_bitbang and lpvo_usb_gpib into the kernel
reveals a function that should have been static and is also duplicated:

x86_64-linux-ld: drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.o: in function `usec_diff':
lpvo_usb_gpib.c:(.text+0x23c0): multiple definition of `usec_diff'; drivers/staging/gpib/gpio/gpib_bitbang.o:gpib_bitbang.c:(.text+0x2470): first defined here

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241212154245.1411411-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/gpio/gpib_bitbang.c
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c