diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-10-04 17:57:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 17:25:04 -0700 |
commit | 26e0105550862a137eba701e2f4e3eeb343759e9 (patch) | |
tree | b95ef1bc9606cee87d01392257ced21fc13ee76e | |
parent | c62c2cfb801b6c890641ed6c91ec9e5c7ad8e2f3 (diff) | |
download | linux-stable-26e0105550862a137eba701e2f4e3eeb343759e9.tar.gz linux-stable-26e0105550862a137eba701e2f4e3eeb343759e9.tar.bz2 linux-stable-26e0105550862a137eba701e2f4e3eeb343759e9.zip |
net: dsa: sja1105: Make function sja1105_xfer_long_buf static
Fix sparse warnings:
drivers/net/dsa/sja1105/sja1105_spi.c:159:5: warning: symbol 'sja1105_xfer_long_buf' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105_spi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105_spi.c b/drivers/net/dsa/sja1105/sja1105_spi.c index 6dda2e328fe2..423ee7eedd8c 100644 --- a/drivers/net/dsa/sja1105/sja1105_spi.c +++ b/drivers/net/dsa/sja1105/sja1105_spi.c @@ -156,9 +156,9 @@ int sja1105_xfer_u32(const struct sja1105_private *priv, * must be sent/received. Splitting the buffer into chunks and assembling * those into SPI messages is done automatically by this function. */ -int sja1105_xfer_long_buf(const struct sja1105_private *priv, - sja1105_spi_rw_mode_t rw, u64 base_addr, - void *packed_buf, u64 buf_len) +static int sja1105_xfer_long_buf(const struct sja1105_private *priv, + sja1105_spi_rw_mode_t rw, u64 base_addr, + void *packed_buf, u64 buf_len) { struct chunk { void *buf_ptr; |