diff options
author | matt mooney <mfm@muteddisk.com> | 2011-05-14 10:55:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-17 20:26:28 (GMT) |
commit | 968c6595e7a3905f55a024e8e743dd823b26cdf8 (patch) | |
tree | fbd2d035b7b4d6c2f87562b4ddb050b65ca99f88 | |
parent | 88d6f40839856552bed131f368f6cd33595c7496 (diff) | |
download | linux-fsl-qoriq-968c6595e7a3905f55a024e8e743dd823b26cdf8.tar.xz |
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 <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/usbip/userspace/libsrc/stub_driver.c | 2 | ||||
-rw-r--r-- | drivers/staging/usbip/userspace/src/usbip_network.c | 3 | ||||
-rw-r--r-- | 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 a1ac067..4c76e03 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 726173e..01be3c7 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 409d064..ec9faac 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; |