Commit 85da101f authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

net: sxgbe: make local functions static

Make local functions static, because these are used only in this
file.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarByungho An <bh74.an@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 412ca155
...@@ -425,8 +425,8 @@ static int init_tx_ring(struct device *dev, u8 queue_no, ...@@ -425,8 +425,8 @@ static int init_tx_ring(struct device *dev, u8 queue_no,
* @rx_rsize: ring size * @rx_rsize: ring size
* Description: this function initializes the DMA RX descriptor * Description: this function initializes the DMA RX descriptor
*/ */
void free_rx_ring(struct device *dev, struct sxgbe_rx_queue *rx_ring, static void free_rx_ring(struct device *dev, struct sxgbe_rx_queue *rx_ring,
int rx_rsize) int rx_rsize)
{ {
dma_free_coherent(dev, rx_rsize * sizeof(struct sxgbe_rx_norm_desc), dma_free_coherent(dev, rx_rsize * sizeof(struct sxgbe_rx_norm_desc),
rx_ring->dma_rx, rx_ring->dma_rx_phy); rx_ring->dma_rx, rx_ring->dma_rx_phy);
...@@ -519,8 +519,8 @@ static int init_rx_ring(struct net_device *dev, u8 queue_no, ...@@ -519,8 +519,8 @@ static int init_rx_ring(struct net_device *dev, u8 queue_no,
* @tx_rsize: ring size * @tx_rsize: ring size
* Description: this function initializes the DMA TX descriptor * Description: this function initializes the DMA TX descriptor
*/ */
void free_tx_ring(struct device *dev, struct sxgbe_tx_queue *tx_ring, static void free_tx_ring(struct device *dev, struct sxgbe_tx_queue *tx_ring,
int tx_rsize) int tx_rsize)
{ {
dma_free_coherent(dev, tx_rsize * sizeof(struct sxgbe_tx_norm_desc), dma_free_coherent(dev, tx_rsize * sizeof(struct sxgbe_tx_norm_desc),
tx_ring->dma_tx, tx_ring->dma_tx_phy); tx_ring->dma_tx, tx_ring->dma_tx_phy);
...@@ -1218,11 +1218,10 @@ static int sxgbe_release(struct net_device *dev) ...@@ -1218,11 +1218,10 @@ static int sxgbe_release(struct net_device *dev)
return 0; return 0;
} }
/* Prepare first Tx descriptor for doing TSO operation */ /* Prepare first Tx descriptor for doing TSO operation */
void sxgbe_tso_prepare(struct sxgbe_priv_data *priv, static void sxgbe_tso_prepare(struct sxgbe_priv_data *priv,
struct sxgbe_tx_norm_desc *first_desc, struct sxgbe_tx_norm_desc *first_desc,
struct sk_buff *skb) struct sk_buff *skb)
{ {
unsigned int total_hdr_len, tcp_hdr_len; unsigned int total_hdr_len, tcp_hdr_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment