Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72de4655 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

net: stmmac: make some functions static



The functions dwmac4_dma_init_rx_chan, dwmac4_dma_init_tx_chan and
dwmac4_dma_init_channel do not need to be in global scope, so them
static.

Cleans up sparse warnings:
"symbol 'dwmac4_dma_init_rx_chan' was not declared. Should it be static?"
"symbol 'dwmac4_dma_init_tx_chan' was not declared. Should it be static?"
"symbol 'dwmac4_dma_init_channel' was not declared. Should it be static?"

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1847d3d0
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ static void dwmac4_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi)
	writel(value, ioaddr + DMA_SYS_BUS_MODE);
}

void dwmac4_dma_init_rx_chan(void __iomem *ioaddr,
static void dwmac4_dma_init_rx_chan(void __iomem *ioaddr,
				    struct stmmac_dma_cfg *dma_cfg,
				    u32 dma_rx_phy, u32 chan)
{
@@ -85,7 +85,7 @@ void dwmac4_dma_init_rx_chan(void __iomem *ioaddr,
	writel(dma_rx_phy, ioaddr + DMA_CHAN_RX_BASE_ADDR(chan));
}

void dwmac4_dma_init_tx_chan(void __iomem *ioaddr,
static void dwmac4_dma_init_tx_chan(void __iomem *ioaddr,
				    struct stmmac_dma_cfg *dma_cfg,
				    u32 dma_tx_phy, u32 chan)
{
@@ -99,7 +99,7 @@ void dwmac4_dma_init_tx_chan(void __iomem *ioaddr,
	writel(dma_tx_phy, ioaddr + DMA_CHAN_TX_BASE_ADDR(chan));
}

void dwmac4_dma_init_channel(void __iomem *ioaddr,
static void dwmac4_dma_init_channel(void __iomem *ioaddr,
				    struct stmmac_dma_cfg *dma_cfg, u32 chan)
{
	u32 value;