Commit 968c6595 authored by matt mooney's avatar matt mooney Committed by Greg Kroah-Hartman

staging: usbip: userspace: remove gcc warnings

The warnings were for unused parameters, so __attribute__((unused))
has been added until it can be determined they are truly unneeded.
Signed-off-by: default avatarmatt mooney <mfm@muteddisk.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 88d6f408
......@@ -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. */
}
......
......@@ -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 */
}
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment