Skip to content

Commit 6827415

Browse files
borneoagregkh
authored andcommitted
usbip: tools: fix build error for multiple definition
commit d5efc2e upstream. With GCC 10, building usbip triggers error for multiple definition of 'udev_context', in: - libsrc/vhci_driver.c:18 and - libsrc/usbip_host_common.c:27. Declare as extern the definition in libsrc/usbip_host_common.c. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20200618000844.1048309-1-borneo.antonio@gmail.com Cc: Petr Štetiar <ynezz@true.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0781709 commit 6827415

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/usb/usbip/libsrc/usbip_host_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "list.h"
2424
#include "sysfs_utils.h"
2525

26-
struct udev *udev_context;
26+
extern struct udev *udev_context;
2727

2828
static int32_t read_attr_usbip_status(struct usbip_usb_device *udev)
2929
{

0 commit comments

Comments
 (0)