diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-12 04:28:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:39:20 -0500 |
commit | 6c2959aa7b81b83c9c4b4cb822bb7c0a637e869a (patch) | |
tree | 6d1aa5da5db2829de3a7a420fd101c00b8b2f27e /drivers/isdn | |
parent | 2b1440230abc8fae0271b012711ecaf64eb38f86 (diff) |
drivers/isdn/hardware/mISDN: fix sparse warnings: make symbols static
Fix this sparse warnings:
drivers/isdn/hardware/mISDN/hfcpci.c:59:19: warning: symbol 'hfc_tl' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcpci.c:60:9: warning: symbol 'hfc_jiffies' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.h:201:6: warning: symbol 'conf_str' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.h:319:12: warning: symbol 'HFC_TE_LAYER1_STATES' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.h:331:12: warning: symbol 'HFC_NT_LAYER1_STATES' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.c:38:12: warning: symbol 'hfcsusb_rev' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.c:978:1: warning: symbol 'fill_isoc_urb' was not declared. Should it be static?
drivers/isdn/hardware/mISDN/hfcsusb.c:1724:1: warning: symbol 'setup_hfcsusb' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcpci.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcsusb.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcsusb.h | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index f0e14dfcf71d..2bb85c48b9b7 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c +++ b/drivers/isdn/hardware/mISDN/hfcpci.c | |||
@@ -56,8 +56,8 @@ static const char *hfcpci_revision = "2.0"; | |||
56 | static int HFC_cnt; | 56 | static int HFC_cnt; |
57 | static uint debug; | 57 | static uint debug; |
58 | static uint poll, tics; | 58 | static uint poll, tics; |
59 | struct timer_list hfc_tl; | 59 | static struct timer_list hfc_tl; |
60 | u32 hfc_jiffies; | 60 | static u32 hfc_jiffies; |
61 | 61 | ||
62 | MODULE_AUTHOR("Karsten Keil"); | 62 | MODULE_AUTHOR("Karsten Keil"); |
63 | MODULE_LICENSE("GPL"); | 63 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c b/drivers/isdn/hardware/mISDN/hfcsusb.c index ba6925fbf38a..9c427fb204ee 100644 --- a/drivers/isdn/hardware/mISDN/hfcsusb.c +++ b/drivers/isdn/hardware/mISDN/hfcsusb.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <linux/mISDNhw.h> | 35 | #include <linux/mISDNhw.h> |
36 | #include "hfcsusb.h" | 36 | #include "hfcsusb.h" |
37 | 37 | ||
38 | const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05"; | 38 | static const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05"; |
39 | 39 | ||
40 | static unsigned int debug; | 40 | static unsigned int debug; |
41 | static int poll = DEFAULT_TRANSP_BURST_SZ; | 41 | static int poll = DEFAULT_TRANSP_BURST_SZ; |
@@ -974,7 +974,7 @@ hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len, | |||
974 | spin_unlock(&hw->lock); | 974 | spin_unlock(&hw->lock); |
975 | } | 975 | } |
976 | 976 | ||
977 | void | 977 | static void |
978 | fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, | 978 | fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, |
979 | void *buf, int num_packets, int packet_size, int interval, | 979 | void *buf, int num_packets, int packet_size, int interval, |
980 | usb_complete_t complete, void *context) | 980 | usb_complete_t complete, void *context) |
@@ -1720,7 +1720,7 @@ hfcsusb_stop_endpoint(struct hfcsusb *hw, int channel) | |||
1720 | 1720 | ||
1721 | 1721 | ||
1722 | /* Hardware Initialization */ | 1722 | /* Hardware Initialization */ |
1723 | int | 1723 | static int |
1724 | setup_hfcsusb(struct hfcsusb *hw) | 1724 | setup_hfcsusb(struct hfcsusb *hw) |
1725 | { | 1725 | { |
1726 | int err; | 1726 | int err; |
diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.h b/drivers/isdn/hardware/mISDN/hfcsusb.h index 098486b8e8d2..43efe7358fa3 100644 --- a/drivers/isdn/hardware/mISDN/hfcsusb.h +++ b/drivers/isdn/hardware/mISDN/hfcsusb.h | |||
@@ -198,7 +198,7 @@ validconf[][19] = { | |||
198 | }; | 198 | }; |
199 | 199 | ||
200 | /* string description of chosen config */ | 200 | /* string description of chosen config */ |
201 | char *conf_str[] = { | 201 | static char *conf_str[] = { |
202 | "4 Interrupt IN + 3 Isochron OUT", | 202 | "4 Interrupt IN + 3 Isochron OUT", |
203 | "3 Interrupt IN + 3 Isochron OUT", | 203 | "3 Interrupt IN + 3 Isochron OUT", |
204 | "4 Isochron IN + 3 Isochron OUT", | 204 | "4 Isochron IN + 3 Isochron OUT", |
@@ -316,7 +316,7 @@ struct hfcsusb_vdata { | |||
316 | #define HFC_MAX_TE_LAYER1_STATE 8 | 316 | #define HFC_MAX_TE_LAYER1_STATE 8 |
317 | #define HFC_MAX_NT_LAYER1_STATE 4 | 317 | #define HFC_MAX_NT_LAYER1_STATE 4 |
318 | 318 | ||
319 | const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = { | 319 | static const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = { |
320 | "TE F0 - Reset", | 320 | "TE F0 - Reset", |
321 | "TE F1 - Reset", | 321 | "TE F1 - Reset", |
322 | "TE F2 - Sensing", | 322 | "TE F2 - Sensing", |
@@ -328,7 +328,7 @@ const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = { | |||
328 | "TE F8 - Lost framing", | 328 | "TE F8 - Lost framing", |
329 | }; | 329 | }; |
330 | 330 | ||
331 | const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = { | 331 | static const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = { |
332 | "NT G0 - Reset", | 332 | "NT G0 - Reset", |
333 | "NT G1 - Deactive", | 333 | "NT G1 - Deactive", |
334 | "NT G2 - Pending activation", | 334 | "NT G2 - Pending activation", |