]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: usbip: userspace: remove gcc warnings
authormatt mooney <mfm@muteddisk.com>
Sat, 14 May 2011 10:55:17 +0000 (03:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 20:26:28 +0000 (13:26 -0700)
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 <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/userspace/libsrc/stub_driver.c
drivers/staging/usbip/userspace/src/usbip_network.c
drivers/staging/usbip/userspace/src/usbipd.c

index a1ac0677650a45c704b680fe4964fc43768925eb..4c76e03299a21164c8b1cf0dab81b1d4c8053ffc 100644 (file)
@@ -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. */
 }
index 726173e563428f4b746f0b9abc62cbe3af45ded8..01be3c7211d5c8a1091510ef36eb98fb2a299951 100644 (file)
@@ -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 */
 }
index 409d0644178cdc761a874ec36dc3424ab6aa0fff..ec9faac5ff8f29b09c12c3a0adbfed9ac06b4878 100644 (file)
@@ -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;