--- a/tools/usb/usbip/libsrc/usbip_common.c +++ b/tools/usb/usbip/libsrc/usbip_common.c @@ -14,7 +14,7 @@ int usbip_use_stderr; int usbip_use_debug; -extern struct udev *udev_context; +struct udev *udev_context; struct speed_string { int num; --- a/tools/usb/usbip/libsrc/usbip_common.h +++ b/tools/usb/usbip/libsrc/usbip_common.h @@ -53,6 +53,8 @@ #define ST_NODEV 0x04 #define ST_ERROR 0x05 +extern struct udev *udev_context; + extern int usbip_use_syslog; extern int usbip_use_stderr; extern int usbip_use_debug ; --- a/tools/usb/usbip/libsrc/usbip_host_common.c +++ b/tools/usb/usbip/libsrc/usbip_host_common.c @@ -23,8 +23,6 @@ #include "list.h" #include "sysfs_utils.h" -struct udev *udev_context; - static int32_t read_attr_usbip_status(struct usbip_usb_device *udev) { char status_attr_path[SYSFS_PATH_MAX]; --- a/tools/usb/usbip/libsrc/vhci_driver.c +++ b/tools/usb/usbip/libsrc/vhci_driver.c @@ -15,7 +15,6 @@ #define PROGNAME "libusbip" struct usbip_vhci_driver *vhci_driver; -struct udev *udev_context; static struct usbip_imported_device * imported_device_init(struct usbip_imported_device *idev, char *busid)