bna: Staticize local functions
Subsystems (3)
PATCH 1/4 bna: Staticize local functions
bna_rx_sm_stop_wait_entry(), bna_rx_sm_rxf_stop_wait_entry(), bna_rx_sm_started_entry(), bna_rx_sm_cleanup_wait_entry(), and bna_rx_sm_cleanup_wait() are used only in this file. Fix the following sparse warnings:
drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1423:1: warning: symbol 'bna_rx_sm_stop_wait_entry' was not declared. Should it be static?drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1476:1: warning: symbol 'bna_rx_sm_rxf_stop_wait_entry' was not declared. Should it be static?drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1532:1: warning: symbol 'bna_rx_sm_started_entry' was not declared. Should it be static?drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1597:1: warning: symbol 'bna_rx_sm_cleanup_wait_entry' was not declared. Should it be static?drivers/net/ethernet/brocade/bna/bna_tx_rx.c:1602:1: warning: symbol 'bna_rx_sm_cleanup_wait' was not declared. Should it be static?
--- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/ethernet/brocade/bna/bna_tx_rx.c +5 -5
@@ -1419,7 +1419,7 @@ static void bna_rx_sm_start_wait_entry(struct bna_rx *rx)bna_bfi_rx_enet_start (rx); } -void +static void bna_rx_sm_stop_wait_entry (struct bna_rx *rx) { }
@@ -1472,7 +1472,7 @@ static void bna_rx_sm_rxf_start_wait_entry(struct bna_rx *rx)bna_rxf_start (&rx->rxf); } -void +static void bna_rx_sm_rxf_stop_wait_entry (struct bna_rx *rx) { }
@@ -1528,7 +1528,7 @@ bna_rx_sm_start_stop_wait(struct bna_rx *rx, enum bna_rx_event event) } } -void +static void bna_rx_sm_started_entry (struct bna_rx *rx) {struct bna_rxp *rxp;
@@ -1593,12 +1593,12 @@ static void bna_rx_sm_rxf_start_wait(struct bna_rx *rx, } } -void +static void bna_rx_sm_cleanup_wait_entry (struct bna_rx *rx) { } -void +static void bna_rx_sm_cleanup_wait (struct bna_rx *rx,enum bna_rx_event event) {switch (event) {
Signature · 1 line
1.7.10.4
From: Jingoo Han <[email protected]>
Date: Mon, 05 Aug 2013 18:00:04 +0900
Quoted 4 lines
bna_rx_sm_stop_wait_entry(),bna_rx_sm_rxf_stop_wait_entry(),bna_rx_sm_started_entry(),bna_rx_sm_cleanup_wait_entry(), andbna_rx_sm_cleanup_wait()are used only in this file. Fix the following sparse warnings:
...
Quoted 1 line
Signed-off-by Jingoo Han <[email protected]>
Applied.