aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg KH <gregkh@suse.de>2005-04-18 20:39:24 -0400
committerGreg K-H <gregkh@suse.de>2005-04-18 20:39:24 -0400
commit6d5e8254bf488a40b7ae2faafbffa232ab19d541 (patch)
tree5b1da56cde518016bee4d94ba55da4f9231307f8
parentba9d35fb01852e195f2a4ca975fdcd6578b52c78 (diff)
[PATCH] USB: fix up some sparse warnings about static functions that aren't static.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Index: gregkh-2.6/drivers/usb/core/usb.h ===================================================================
-rw-r--r--drivers/usb/core/config.c3
-rw-r--r--drivers/usb/core/devices.c1
-rw-r--r--drivers/usb/core/file.c2
-rw-r--r--drivers/usb/core/inode.c1
-rw-r--r--drivers/usb/core/usb.c7
-rw-r--r--drivers/usb/core/usb.h8
6 files changed, 14 insertions, 8 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index 0b092bdf98f3..99595e07b653 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -10,7 +10,8 @@
10#include <linux/slab.h> 10#include <linux/slab.h>
11#include <linux/device.h> 11#include <linux/device.h>
12#include <asm/byteorder.h> 12#include <asm/byteorder.h>
13 13#include "usb.h"
14#include "hcd.h"
14 15
15#define USB_MAXALTSETTING 128 /* Hard limit */ 16#define USB_MAXALTSETTING 128 /* Hard limit */
16#define USB_MAXENDPOINTS 30 /* Hard limit */ 17#define USB_MAXENDPOINTS 30 /* Hard limit */
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c
index 8b61bcd742ca..b87608b7051b 100644
--- a/drivers/usb/core/devices.c
+++ b/drivers/usb/core/devices.c
@@ -59,6 +59,7 @@
59#include <linux/usbdevice_fs.h> 59#include <linux/usbdevice_fs.h>
60#include <asm/uaccess.h> 60#include <asm/uaccess.h>
61 61
62#include "usb.h"
62#include "hcd.h" 63#include "hcd.h"
63 64
64#define MAX_TOPO_LEVEL 6 65#define MAX_TOPO_LEVEL 6
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c
index 80ce9644d0ee..38ed2220c9fc 100644
--- a/drivers/usb/core/file.c
+++ b/drivers/usb/core/file.c
@@ -28,6 +28,8 @@
28#endif 28#endif
29#include <linux/usb.h> 29#include <linux/usb.h>
30 30
31#include "usb.h"
32
31#define MAX_USB_MINORS 256 33#define MAX_USB_MINORS 256
32static struct file_operations *usb_minors[MAX_USB_MINORS]; 34static struct file_operations *usb_minors[MAX_USB_MINORS];
33static DEFINE_SPINLOCK(minor_lock); 35static DEFINE_SPINLOCK(minor_lock);
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index d913407bcdc1..f9f9561c6bad 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -41,6 +41,7 @@
41#include <linux/parser.h> 41#include <linux/parser.h>
42#include <asm/byteorder.h> 42#include <asm/byteorder.h>
43#include "usb.h" 43#include "usb.h"
44#include "hcd.h"
44 45
45static struct super_operations usbfs_ops; 46static struct super_operations usbfs_ops;
46static struct file_operations default_file_operations; 47static struct file_operations default_file_operations;
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 5e45996b5a44..c231b4bef314 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -50,13 +50,6 @@
50#include "hcd.h" 50#include "hcd.h"
51#include "usb.h" 51#include "usb.h"
52 52
53extern int usb_hub_init(void);
54extern void usb_hub_cleanup(void);
55extern int usb_major_init(void);
56extern void usb_major_cleanup(void);
57extern int usb_host_init(void);
58extern void usb_host_cleanup(void);
59
60 53
61const char *usbcore_name = "usbcore"; 54const char *usbcore_name = "usbcore";
62 55
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h
index 4c33eee52001..2c690f6d4c18 100644
--- a/drivers/usb/core/usb.h
+++ b/drivers/usb/core/usb.h
@@ -21,6 +21,13 @@ extern void usb_unlock_all_devices(void);
21extern void usb_kick_khubd(struct usb_device *dev); 21extern void usb_kick_khubd(struct usb_device *dev);
22extern void usb_resume_root_hub(struct usb_device *dev); 22extern void usb_resume_root_hub(struct usb_device *dev);
23 23
24extern int usb_hub_init(void);
25extern void usb_hub_cleanup(void);
26extern int usb_major_init(void);
27extern void usb_major_cleanup(void);
28extern int usb_host_init(void);
29extern void usb_host_cleanup(void);
30
24/* for labeling diagnostics */ 31/* for labeling diagnostics */
25extern const char *usbcore_name; 32extern const char *usbcore_name;
26 33
@@ -30,6 +37,7 @@ extern struct file_operations usbfs_devices_fops;
30extern struct file_operations usbfs_device_file_operations; 37extern struct file_operations usbfs_device_file_operations;
31extern void usbfs_conn_disc_event(void); 38extern void usbfs_conn_disc_event(void);
32 39
40
33struct dev_state { 41struct dev_state {
34 struct list_head list; /* state list */ 42 struct list_head list; /* state list */
35 struct usb_device *dev; 43 struct usb_device *dev;