mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: gregkh@suse.de
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/usb/gadget/config.c: make a function static
Date: Tue, 1 Mar 2005 01:34:28 +0100	[thread overview]
Message-ID: <20050301003428.GZ4021@stusta.de> (raw)

This patch makes a needlessly global function static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/usb/gadget/config.c |    2 +-
 include/linux/usb_gadget.h  |    6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

--- linux-2.6.11-rc4-mm1-full/include/linux/usb_gadget.h.old	2005-02-28 23:15:09.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/include/linux/usb_gadget.h	2005-02-28 23:15:24.000000000 +0100
@@ -854,12 +854,6 @@
 
 /*-------------------------------------------------------------------------*/
 
-/* utility to simplify managing config descriptors */
-
-/* write vector of descriptors into buffer */
-int usb_descriptor_fillbuf(void *, unsigned,
-		const struct usb_descriptor_header **);
-
 /* build config descriptor from single descriptor vector */
 int usb_gadget_config_buf(const struct usb_config_descriptor *config,
 	void *buf, unsigned buflen, const struct usb_descriptor_header **desc);
--- linux-2.6.11-rc4-mm1-full/drivers/usb/gadget/config.c.old	2005-02-28 23:15:34.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/usb/gadget/config.c	2005-02-28 23:15:49.000000000 +0100
@@ -39,7 +39,7 @@
  * as part of configuring a composite device; or in other cases where
  * sets of descriptors need to be marshaled.
  */
-int
+static int
 usb_descriptor_fillbuf(void *buf, unsigned buflen,
 		const struct usb_descriptor_header **src)
 {


             reply	other threads:[~2005-03-01  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-01  0:34 Adrian Bunk [this message]
2005-03-01  1:02 ` [linux-usb-devel] " David Brownell

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=20050301003428.GZ4021@stusta.de \
    --to=bunk@stusta.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    /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

Powered by JetHome