aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 06:43:15 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 20:37:59 -0500
commit6e470d261326801ff823a3b7a49581a8baae8698 (patch)
tree4c563eb2f8fe5b3c994424d65cc7c3c57263cc83 /drivers/net
parent37d37695ef34b04ecf20586c12ec0c932283a130 (diff)
drivers/net/skfp: fix sparse warning: Should it be static?
Impact: Move function declarations to header file. Fix this sparse warnings: drivers/net/skfp/cfm.c:146:6: warning: symbol 'all_selection_criteria' was not declared. Should it be static? drivers/net/skfp/drvfbi.c:186:6: warning: symbol 'mac1_irq' was not declared. Should it be static? drivers/net/skfp/drvfbi.c:284:6: warning: symbol 'read_address' was not declared. Should it be static? drivers/net/skfp/drvfbi.c:323:6: warning: symbol 'init_board' was not declared. Should it be static? drivers/net/skfp/fplustm.c:72:24: warning: symbol 'fddi_broadcast' was not declared. Should it be static? drivers/net/skfp/fplustm.c:679:6: warning: symbol 'mac2_irq' was not declared. Should it be static? drivers/net/skfp/fplustm.c:805:6: warning: symbol 'mac3_irq' was not declared. Should it be static? drivers/net/skfp/fplustm.c:856:5: warning: symbol 'init_fplus' was not declared. Should it be static? drivers/net/skfp/pcmplc.c:404:6: warning: symbol 'init_plc' was not declared. Should it be static? drivers/net/skfp/pcmplc.c:1592:5: warning: symbol 'pcm_status_twisted' was not declared. Should it be static? drivers/net/skfp/smtinit.c:68:5: warning: symbol 'init_smt' 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/net')
-rw-r--r--drivers/net/skfp/h/smc.h17
-rw-r--r--drivers/net/skfp/hwmtm.c9
-rw-r--r--drivers/net/skfp/pcmplc.c3
-rw-r--r--drivers/net/skfp/skfddi.c3
-rw-r--r--drivers/net/skfp/smt.c10
5 files changed, 17 insertions, 25 deletions
diff --git a/drivers/net/skfp/h/smc.h b/drivers/net/skfp/h/smc.h
index 94325915e0d5..1758d9548361 100644
--- a/drivers/net/skfp/h/smc.h
+++ b/drivers/net/skfp/h/smc.h
@@ -467,5 +467,22 @@ struct s_smc {
467#endif /* DEBUG_BRD && DEBUG */ 467#endif /* DEBUG_BRD && DEBUG */
468} ; 468} ;
469 469
470extern const struct fddi_addr fddi_broadcast;
471
472extern void all_selection_criteria(struct s_smc *smc);
473extern void card_stop(struct s_smc *smc);
474extern void init_board(struct s_smc *smc, u_char *mac_addr);
475extern int init_fplus(struct s_smc *smc);
476extern void init_plc(struct s_smc *smc);
477extern int init_smt(struct s_smc *smc, u_char * mac_addr);
478extern void mac1_irq(struct s_smc *smc, u_short stu, u_short stl);
479extern void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l);
480extern void mac3_irq(struct s_smc *smc, u_short code_s3u, u_short code_s3l);
481extern int pcm_status_twisted(struct s_smc *smc);
482extern void plc1_irq(struct s_smc *smc);
483extern void plc2_irq(struct s_smc *smc);
484extern void read_address(struct s_smc *smc, u_char * mac_addr);
485extern void timer_irq(struct s_smc *smc);
486
470#endif /* _SCMECM_ */ 487#endif /* _SCMECM_ */
471 488
diff --git a/drivers/net/skfp/hwmtm.c b/drivers/net/skfp/hwmtm.c
index 4218e97033c9..d322f1b702ac 100644
--- a/drivers/net/skfp/hwmtm.c
+++ b/drivers/net/skfp/hwmtm.c
@@ -97,23 +97,15 @@ static void mac_drv_clear_txd(struct s_smc *smc);
97 97
98extern void* mac_drv_get_space(struct s_smc *smc, unsigned int size); 98extern void* mac_drv_get_space(struct s_smc *smc, unsigned int size);
99extern void* mac_drv_get_desc_mem(struct s_smc *smc, unsigned int size); 99extern void* mac_drv_get_desc_mem(struct s_smc *smc, unsigned int size);
100extern void init_board(struct s_smc *smc, u_char *mac_addr);
101extern void mac_drv_fill_rxd(struct s_smc *smc); 100extern void mac_drv_fill_rxd(struct s_smc *smc);
102extern void plc1_irq(struct s_smc *smc);
103extern void mac_drv_tx_complete(struct s_smc *smc, 101extern void mac_drv_tx_complete(struct s_smc *smc,
104 volatile struct s_smt_fp_txd *txd); 102 volatile struct s_smt_fp_txd *txd);
105extern void plc2_irq(struct s_smc *smc);
106extern void mac1_irq(struct s_smc *smc, u_short stu, u_short stl);
107extern void mac2_irq(struct s_smc *smc, u_short code_s2u, u_short code_s2l);
108extern void mac3_irq(struct s_smc *smc, u_short code_s3u, u_short code_s3l);
109extern void timer_irq(struct s_smc *smc);
110extern void mac_drv_rx_complete(struct s_smc *smc, 103extern void mac_drv_rx_complete(struct s_smc *smc,
111 volatile struct s_smt_fp_rxd *rxd, 104 volatile struct s_smt_fp_rxd *rxd,
112 int frag_count, int len); 105 int frag_count, int len);
113extern void mac_drv_requeue_rxd(struct s_smc *smc, 106extern void mac_drv_requeue_rxd(struct s_smc *smc,
114 volatile struct s_smt_fp_rxd *rxd, 107 volatile struct s_smt_fp_rxd *rxd,
115 int frag_count); 108 int frag_count);
116extern void init_plc(struct s_smc *smc);
117extern void mac_drv_clear_rxd(struct s_smc *smc, 109extern void mac_drv_clear_rxd(struct s_smc *smc,
118 volatile struct s_smt_fp_rxd *rxd, int frag_count); 110 volatile struct s_smt_fp_rxd *rxd, int frag_count);
119 111
@@ -136,7 +128,6 @@ extern void dma_complete(struct s_smc *smc, volatile union s_fp_descr *descr,
136 int flag); 128 int flag);
137#endif 129#endif
138 130
139extern int init_fplus(struct s_smc *smc);
140extern int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead, 131extern int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead,
141 int la_len); 132 int la_len);
142 133
diff --git a/drivers/net/skfp/pcmplc.c b/drivers/net/skfp/pcmplc.c
index 74e129f3ce92..f1df2ec8ad41 100644
--- a/drivers/net/skfp/pcmplc.c
+++ b/drivers/net/skfp/pcmplc.c
@@ -198,9 +198,6 @@ static int plc_imsk_na = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |
198static const int plc_imsk_act = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK | 198static const int plc_imsk_act = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |
199 PL_PCM_ENABLED | PL_SELF_TEST | PL_EBUF_ERR; 199 PL_PCM_ENABLED | PL_SELF_TEST | PL_EBUF_ERR;
200 200
201/* external functions */
202void all_selection_criteria(struct s_smc *smc);
203
204/* internal functions */ 201/* internal functions */
205static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd); 202static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd);
206static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy); 203static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy);
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c
index 9a00e5566af7..e14aec0a7333 100644
--- a/drivers/net/skfp/skfddi.c
+++ b/drivers/net/skfp/skfddi.c
@@ -135,14 +135,11 @@ void dump_data(unsigned char *Data, int length);
135 135
136// External functions from the hardware module 136// External functions from the hardware module
137extern u_int mac_drv_check_space(void); 137extern u_int mac_drv_check_space(void);
138extern void read_address(struct s_smc *smc, u_char * mac_addr);
139extern void card_stop(struct s_smc *smc);
140extern int mac_drv_init(struct s_smc *smc); 138extern int mac_drv_init(struct s_smc *smc);
141extern void hwm_tx_frag(struct s_smc *smc, char far * virt, u_long phys, 139extern void hwm_tx_frag(struct s_smc *smc, char far * virt, u_long phys,
142 int len, int frame_status); 140 int len, int frame_status);
143extern int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, 141extern int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count,
144 int frame_len, int frame_status); 142 int frame_len, int frame_status);
145extern int init_smt(struct s_smc *smc, u_char * mac_addr);
146extern void fddi_isr(struct s_smc *smc); 143extern void fddi_isr(struct s_smc *smc);
147extern void hwm_rx_frag(struct s_smc *smc, char far * virt, u_long phys, 144extern void hwm_rx_frag(struct s_smc *smc, char far * virt, u_long phys,
148 int len, int frame_status); 145 int len, int frame_status);
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c
index 805383b33d3c..83d16fecfac4 100644
--- a/drivers/net/skfp/smt.c
+++ b/drivers/net/skfp/smt.c
@@ -55,16 +55,6 @@ static const struct fddi_addr SMT_Unknown = {
55} ; 55} ;
56 56
57/* 57/*
58 * external variables
59 */
60extern const struct fddi_addr fddi_broadcast ;
61
62/*
63 * external functions
64 */
65int pcm_status_twisted(struct s_smc *smc);
66
67/*
68 * function prototypes 58 * function prototypes
69 */ 59 */
70#ifdef LITTLE_ENDIAN 60#ifdef LITTLE_ENDIAN