mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
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>
This commit is contained in:
parent
88d6f40839
commit
968c6595e7
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue