From 968c6595e7a3905f55a024e8e743dd823b26cdf8 Mon Sep 17 00:00:00 2001 From: matt mooney Date: Sat, 14 May 2011 03:55:17 -0700 Subject: [PATCH] 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: matt mooney Signed-off-by: Greg Kroah-Hartman --- drivers/staging/usbip/userspace/libsrc/stub_driver.c | 2 +- drivers/staging/usbip/userspace/src/usbip_network.c | 3 ++- drivers/staging/usbip/userspace/src/usbipd.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/usbip/userspace/libsrc/stub_driver.c b/drivers/staging/usbip/userspace/libsrc/stub_driver.c index a1ac0677650a..4c76e03299a2 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 726173e56342..01be3c7211d5 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 409d0644178c..ec9faac5ff8f 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; -- 2.39.5