Skip to content

Commit

Permalink
staging: usbip: userspace: remove gcc warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 88d6f40 commit 968c659
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/usbip/userspace/libsrc/stub_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
}
Expand Down
3 changes: 2 additions & 1 deletion drivers/staging/usbip/userspace/src/usbip_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down
3 changes: 2 additions & 1 deletion drivers/staging/usbip/userspace/src/usbipd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 968c659

Please sign in to comment.