diff --git a/drivers/staging/usbip/userspace/libsrc/stub_driver.c b/drivers/staging/usbip/userspace/libsrc/stub_driver.c index a1ac0677650a45c704b680fe4964fc43768925eb..4c76e03299a21164c8b1cf0dab81b1d4c8053ffc 100644 --- a/drivers/staging/usbip/userspace/libsrc/stub_driver.c +++ b/drivers/staging/usbip/userspace/libsrc/stub_driver.c @@ -181,7 +181,7 @@ static int check_new(struct dlist *dlist, struct sysfs_device *target) return 1; } -static void delete_nothing(void *dev) +static void delete_nothing(void *dev __attribute__((unused))) { /* do not delete anything. but, its container will be deleted. */ } diff --git a/drivers/staging/usbip/userspace/src/usbip_network.c b/drivers/staging/usbip/userspace/src/usbip_network.c index 726173e563428f4b746f0b9abc62cbe3af45ded8..01be3c7211d5c8a1091510ef36eb98fb2a299951 100644 --- a/drivers/staging/usbip/userspace/src/usbip_network.c +++ b/drivers/staging/usbip/userspace/src/usbip_network.c @@ -40,7 +40,8 @@ void pack_usb_device(int pack, struct usb_device *udev) pack_uint16_t(pack, &udev->bcdDevice); } -void pack_usb_interface(int pack, struct usb_interface *udev) +void pack_usb_interface(int pack __attribute__((unused)), + struct usb_interface *udev __attribute__((unused))) { /* uint8_t members need nothing */ } diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src/usbipd.c index 409d0644178cdc761a874ec36dc3424ab6aa0fff..ec9faac5ff8f29b09c12c3a0adbfed9ac06b4878 100644 --- a/drivers/staging/usbip/userspace/src/usbipd.c +++ b/drivers/staging/usbip/userspace/src/usbipd.c @@ -388,7 +388,8 @@ static void set_signal(void) } -gboolean process_comming_request(GIOChannel *gio, GIOCondition condition, gpointer data) +gboolean process_comming_request(GIOChannel *gio, GIOCondition condition, + gpointer data __attribute__((unused))) { int ret;