tree 5b1da56cde518016bee4d94ba55da4f9231307f8
parent ba9d35fb01852e195f2a4ca975fdcd6578b52c78
author Greg KH <[EMAIL PROTECTED]> Tue, 19 Apr 2005 07:39:24 -0700
committer Greg K-H <[EMAIL PROTECTED]> Tue, 19 Apr 2005 07:39:24 -0700
[PATCH] USB: fix up some sparse warnings about static functions that aren't
static.
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
Index: gregkh-2.6/drivers/usb/core/usb.h
===================================================================
usb/core/config.c | 3 ++-
usb/core/devices.c | 1 +
usb/core/file.c | 2 ++
usb/core/inode.c | 1 +
usb/core/usb.c | 7 -------
usb/core/usb.h | 8 ++++++++
6 files changed, 14 insertions(+), 8 deletions(-)
Index: drivers/usb/core/config.c
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/config.c
(mode:100644 sha1:0b092bdf98f39189e389fbee5e104a893b15f7c6)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/config.c
(mode:100644 sha1:99595e07b65389f697624204c6d54105780c6e82)
@@ -10,7 +10,8 @@
#include <linux/slab.h>
#include <linux/device.h>
#include <asm/byteorder.h>
-
+#include "usb.h"
+#include "hcd.h"
#define USB_MAXALTSETTING 128 /* Hard limit */
#define USB_MAXENDPOINTS 30 /* Hard limit */
Index: drivers/usb/core/devices.c
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/devices.c
(mode:100644 sha1:8b61bcd742caca3aae0675d11d84fc78795e2453)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/devices.c
(mode:100644 sha1:b87608b7051bf960cdd3f3ed4a88635e249de173)
@@ -59,6 +59,7 @@
#include <linux/usbdevice_fs.h>
#include <asm/uaccess.h>
+#include "usb.h"
#include "hcd.h"
#define MAX_TOPO_LEVEL 6
Index: drivers/usb/core/file.c
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/file.c
(mode:100644 sha1:80ce9644d0eea027546f55cba42d921fb7e57aeb)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/file.c
(mode:100644 sha1:38ed2220c9fcc31bee849c2410e45a22f3a8098e)
@@ -28,6 +28,8 @@
#endif
#include <linux/usb.h>
+#include "usb.h"
+
#define MAX_USB_MINORS 256
static struct file_operations *usb_minors[MAX_USB_MINORS];
static DEFINE_SPINLOCK(minor_lock);
Index: drivers/usb/core/inode.c
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/inode.c
(mode:100644 sha1:d913407bcdc1e3e453d6811b9a1547234386badb)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/inode.c
(mode:100644 sha1:f9f9561c6bad3fa611e410af62aaffae92771335)
@@ -41,6 +41,7 @@
#include <linux/parser.h>
#include <asm/byteorder.h>
#include "usb.h"
+#include "hcd.h"
static struct super_operations usbfs_ops;
static struct file_operations default_file_operations;
Index: drivers/usb/core/usb.c
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/usb.c
(mode:100644 sha1:5e45996b5a441d94c89f8fa94db2bf66f8ca8e93)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/usb.c
(mode:100644 sha1:c231b4bef314284a168fedb6c5f6c47aec5084fc)
@@ -50,13 +50,6 @@
#include "hcd.h"
#include "usb.h"
-extern int usb_hub_init(void);
-extern void usb_hub_cleanup(void);
-extern int usb_major_init(void);
-extern void usb_major_cleanup(void);
-extern int usb_host_init(void);
-extern void usb_host_cleanup(void);
-
const char *usbcore_name = "usbcore";
Index: drivers/usb/core/usb.h
===================================================================
--- e0609e6e255f4875ba5ab69bb0aa169d8c5edae8/drivers/usb/core/usb.h
(mode:100644 sha1:4c33eee520011bc7eba449f9c379d4e4007f067c)
+++ 5b1da56cde518016bee4d94ba55da4f9231307f8/drivers/usb/core/usb.h
(mode:100644 sha1:2c690f6d4c18b84dd83832f7aca4746dbd36d731)
@@ -21,6 +21,13 @@
extern void usb_kick_khubd(struct usb_device *dev);
extern void usb_resume_root_hub(struct usb_device *dev);
+extern int usb_hub_init(void);
+extern void usb_hub_cleanup(void);
+extern int usb_major_init(void);
+extern void usb_major_cleanup(void);
+extern int usb_host_init(void);
+extern void usb_host_cleanup(void);
+
/* for labeling diagnostics */
extern const char *usbcore_name;
@@ -30,6 +37,7 @@
extern struct file_operations usbfs_device_file_operations;
extern void usbfs_conn_disc_event(void);
+
struct dev_state {
struct list_head list; /* state list */
struct usb_device *dev;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html