mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: matt mooney <mfmooney@gmail.com>
To: Greg Kroah-Hartman <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 11/14] staging: usbip: userspace: remove gcc warnings
Date: Sat, 14 May 2011 03:55:17 -0700	[thread overview]
Message-ID: <0c194098dd7f6a7d740cc1a91b83b4f845af0ad8.1305369176.git.mfm@muteddisk.com> (raw)
In-Reply-To: <cover.1305369175.git.mfm@muteddisk.com>

From: matt mooney <mfm@muteddisk.com>

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>
---
 .../staging/usbip/userspace/libsrc/stub_driver.c   |    2 +-
 .../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 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;
 
-- 
1.7.5.1


  parent reply	other threads:[~2011-05-14 10:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14 10:55 [PATCH 00/14] staging: usbip: userspace code matt mooney
2011-05-14 10:55 ` [PATCH 01/14] staging: usbip: add " matt mooney
2011-05-15  3:46   ` Chris Frey
2011-05-15 16:29     ` Greg KH
2011-05-15 16:49       ` Chris Frey
2011-05-14 10:55 ` [PATCH 02/14] staging: usbip: userspace: move manpages to separate directory matt mooney
2011-05-14 10:55 ` [PATCH 03/14] staging: usbip: userspace: rename source directories matt mooney
2011-05-14 10:55 ` [PATCH 04/14] staging: usbip: userspace: remove unused files matt mooney
2011-05-14 10:55 ` [PATCH 05/14] staging: usbip: userspace: whitespace cleanup matt mooney
2011-05-14 10:55 ` [PATCH 06/14] staging: usbip: userspace: update module name references matt mooney
2011-05-14 10:55 ` [PATCH 07/14] staging: usbip: userspace: configure.ac: major overhaul matt mooney
2011-05-14 10:55 ` [PATCH 08/14] staging: usbip: userspace: cleanup makefiles matt mooney
2011-05-14 10:55 ` [PATCH 09/14] staging: usbip: userspace: set libusbip version in configure.ac matt mooney
2011-05-14 10:55 ` [PATCH 10/14] staging: usbip: userspace: remove revision $Id$ matt mooney
2011-05-14 10:55 ` matt mooney [this message]
2011-05-14 10:55 ` [PATCH 12/14] staging: usbip: userspace: move common cflags to configure.ac matt mooney
2011-05-14 10:55 ` [PATCH 13/14] staging: usbip: userspace: modify project gcc flags matt mooney
2011-05-14 10:55 ` [PATCH 14/14] package: Makefile: add USB/IP userspace utilities matt mooney
2011-05-17 20:23   ` Greg KH
2011-05-17 21:13     ` matt mooney
2011-05-17 21:21       ` Greg KH
2011-05-17 21:59         ` matt mooney
2011-05-17 22:45           ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c194098dd7f6a7d740cc1a91b83b4f845af0ad8.1305369176.git.mfm@muteddisk.com \
    --to=mfmooney@gmail.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®