diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-05 05:03:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-05 14:05:24 -0400 |
commit | 51a700db96367b079edd19988c8f91ddb33ec987 (patch) | |
tree | 8ea42d9f7d0c40444b6788d07ad21552a3a8d81e /drivers/net/ethernet/micrel/ks8842.c | |
parent | 4188e7df44bf316a691bf0efa260859d978c7e9d (diff) |
net: micrel: Staticize local functions
These local functions are used only in this file.
Fix the following sparse warnings:
drivers/net/ethernet/micrel/ks8842.c:708:6: warning: symbol 'ks8842_handle_rx' was not declared. Should it be static?
drivers/net/ethernet/micrel/ks8842.c:718:6: warning: symbol 'ks8842_handle_tx' was not declared. Should it be static?
drivers/net/ethernet/micrel/ks8842.c:727:6: warning: symbol 'ks8842_handle_rx_overrun' was not declared. Should it be static?
drivers/net/ethernet/micrel/ks8842.c:735:6: warning: symbol 'ks8842_tasklet' was not declared. Should it be static?
drivers/net/ethernet/micrel/ks8851_mll.c:691:6: warning: symbol 'ks_enable_qmu' was not declared. Should it be static?
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8842.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8842.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index e393d998be89..94b3bd6fb5fd 100644 --- a/drivers/net/ethernet/micrel/ks8842.c +++ b/drivers/net/ethernet/micrel/ks8842.c | |||
@@ -705,7 +705,8 @@ static void ks8842_rx_frame(struct net_device *netdev, | |||
705 | ks8842_enable_bits(adapter, 0, 1 << 12, REG_QRFCR); | 705 | ks8842_enable_bits(adapter, 0, 1 << 12, REG_QRFCR); |
706 | } | 706 | } |
707 | 707 | ||
708 | void ks8842_handle_rx(struct net_device *netdev, struct ks8842_adapter *adapter) | 708 | static void ks8842_handle_rx(struct net_device *netdev, |
709 | struct ks8842_adapter *adapter) | ||
709 | { | 710 | { |
710 | u16 rx_data = ks8842_read16(adapter, 16, REG_RXMIR) & 0x1fff; | 711 | u16 rx_data = ks8842_read16(adapter, 16, REG_RXMIR) & 0x1fff; |
711 | netdev_dbg(netdev, "%s Entry - rx_data: %d\n", __func__, rx_data); | 712 | netdev_dbg(netdev, "%s Entry - rx_data: %d\n", __func__, rx_data); |
@@ -715,7 +716,8 @@ void ks8842_handle_rx(struct net_device *netdev, struct ks8842_adapter *adapter) | |||
715 | } | 716 | } |
716 | } | 717 | } |
717 | 718 | ||
718 | void ks8842_handle_tx(struct net_device *netdev, struct ks8842_adapter *adapter) | 719 | static void ks8842_handle_tx(struct net_device *netdev, |
720 | struct ks8842_adapter *adapter) | ||
719 | { | 721 | { |
720 | u16 sr = ks8842_read16(adapter, 16, REG_TXSR); | 722 | u16 sr = ks8842_read16(adapter, 16, REG_TXSR); |
721 | netdev_dbg(netdev, "%s - entry, sr: %x\n", __func__, sr); | 723 | netdev_dbg(netdev, "%s - entry, sr: %x\n", __func__, sr); |
@@ -724,7 +726,7 @@ void ks8842_handle_tx(struct net_device *netdev, struct ks8842_adapter *adapter) | |||
724 | netif_wake_queue(netdev); | 726 | netif_wake_queue(netdev); |
725 | } | 727 | } |
726 | 728 | ||
727 | void ks8842_handle_rx_overrun(struct net_device *netdev, | 729 | static void ks8842_handle_rx_overrun(struct net_device *netdev, |
728 | struct ks8842_adapter *adapter) | 730 | struct ks8842_adapter *adapter) |
729 | { | 731 | { |
730 | netdev_dbg(netdev, "%s: entry\n", __func__); | 732 | netdev_dbg(netdev, "%s: entry\n", __func__); |
@@ -732,7 +734,7 @@ void ks8842_handle_rx_overrun(struct net_device *netdev, | |||
732 | netdev->stats.rx_fifo_errors++; | 734 | netdev->stats.rx_fifo_errors++; |
733 | } | 735 | } |
734 | 736 | ||
735 | void ks8842_tasklet(unsigned long arg) | 737 | static void ks8842_tasklet(unsigned long arg) |
736 | { | 738 | { |
737 | struct net_device *netdev = (struct net_device *)arg; | 739 | struct net_device *netdev = (struct net_device *)arg; |
738 | struct ks8842_adapter *adapter = netdev_priv(netdev); | 740 | struct ks8842_adapter *adapter = netdev_priv(netdev); |