提交 968c6595 编写于 作者: M matt mooney 提交者: 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: Nmatt mooney <mfm@muteddisk.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册