aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-12 04:28:40 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:39:20 -0500
commit6c2959aa7b81b83c9c4b4cb822bb7c0a637e869a (patch)
tree6d1aa5da5db2829de3a7a420fd101c00b8b2f27e
parent2b1440230abc8fae0271b012711ecaf64eb38f86 (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>
-rw-r--r--drivers/isdn/hardware/mISDN/hfcpci.c4
-rw-r--r--drivers/isdn/hardware/mISDN/hfcsusb.c6
-rw-r--r--drivers/isdn/hardware/mISDN/hfcsusb.h6
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";
56static int HFC_cnt; 56static int HFC_cnt;
57static uint debug; 57static uint debug;
58static uint poll, tics; 58static uint poll, tics;
59struct timer_list hfc_tl; 59static struct timer_list hfc_tl;
60u32 hfc_jiffies; 60static u32 hfc_jiffies;
61 61
62MODULE_AUTHOR("Karsten Keil"); 62MODULE_AUTHOR("Karsten Keil");
63MODULE_LICENSE("GPL"); 63MODULE_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
38const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05"; 38static const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05";
39 39
40static unsigned int debug; 40static unsigned int debug;
41static int poll = DEFAULT_TRANSP_BURST_SZ; 41static 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
977void 977static void
978fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, 978fill_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 */
1723int 1723static int
1724setup_hfcsusb(struct hfcsusb *hw) 1724setup_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 */
201char *conf_str[] = { 201static 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
319const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = { 319static 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
331const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = { 331static 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",