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>

authored by Arnd Bergmann and committed by Greg Kroah-Hartman d99d65ae 8c41fae5

+2 -2
+1 -1
drivers/staging/gpib/gpio/gpib_bitbang.c
··· 315 enum listener_function_state listener_state; 316 }; 317 318 - inline long usec_diff(struct timespec64 *a, struct timespec64 *b); 319 static void bb_buffer_print(unsigned char *buffer, size_t length, int cmd, int eoi); 320 static void set_data_lines(u8 byte); 321 static u8 get_data_lines(void);
··· 315 enum listener_function_state listener_state; 316 }; 317 318 + static inline long usec_diff(struct timespec64 *a, struct timespec64 *b); 319 static void bb_buffer_print(unsigned char *buffer, size_t length, int cmd, int eoi); 320 static void set_data_lines(u8 byte); 321 static u8 get_data_lines(void);
+1 -1
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
··· 210 * (unix time in sec and NANOsec) 211 */ 212 213 - inline int usec_diff(struct timespec64 *a, struct timespec64 *b) 214 { 215 return ((a->tv_sec - b->tv_sec) * 1000000 + 216 (a->tv_nsec - b->tv_nsec) / 1000);
··· 210 * (unix time in sec and NANOsec) 211 */ 212 213 + static inline int usec_diff(struct timespec64 *a, struct timespec64 *b) 214 { 215 return ((a->tv_sec - b->tv_sec) * 1000000 + 216 (a->tv_nsec - b->tv_nsec) / 1000);