On Tue, Nov 09, 2004 at 08:42:43AM -0800, Greg KH wrote:
> On Sun, Nov 07, 2004 at 03:20:39PM -0700, David Brownell wrote:
> > On Sunday 07 November 2004 13:30, Adrian Bunk wrote:
> > > The patch below makes some needlessly global USB gadget functions
> > > static.
> >
> > It looks fine except for the one config descriptor utility
> > (just strike those bits from the patch). Those are exported
> > to support composite devices ... for "multi-function" devices.
>
> Care to send me a patch with the correct parts in it? :)
>...
USB gadget: make 4 needlessly global functions static.
diffstat output:
drivers/usb/gadget/file_storage.c | 4 ++--
drivers/usb/gadget/rndis.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
--- linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/rndis.c.old 2004-11-07
21:26:33.000000000 +0100
+++ linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/rndis.c 2004-11-07
21:26:49.000000000 +0100
@@ -1275,7 +1275,7 @@
#ifdef CONFIG_USB_GADGET_DEBUG_FILES
-int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof,
+static int rndis_proc_read (char *page, char **start, off_t off, int count,
int *eof,
void *data)
{
char *out = page;
@@ -1320,7 +1320,7 @@
return len;
}
-int rndis_proc_write (struct file *file, const char __user *buffer,
+static int rndis_proc_write (struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
rndis_params *p = data;
--- linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/file_storage.c.old
2004-11-07 21:28:16.000000000 +0100
+++ linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/file_storage.c 2004-11-07
21:28:35.000000000 +0100
@@ -3579,7 +3579,7 @@
}
-ssize_t store_ro(struct device *dev, const char *buf, size_t count)
+static ssize_t store_ro(struct device *dev, const char *buf, size_t count)
{
ssize_t rc = count;
struct lun *curlun = dev_to_lun(dev);
@@ -3603,7 +3603,7 @@
return rc;
}
-ssize_t store_file(struct device *dev, const char *buf, size_t count)
+static ssize_t store_file(struct device *dev, const char *buf, size_t count)
{
struct lun *curlun = dev_to_lun(dev);
struct fsg_dev *fsg = (struct fsg_dev *) dev_get_drvdata(dev);
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel