# \[PATCH 08/11\] net: emaclite: Let's make xemaclite\_adjust\_link static

- From: Michal Simek \<hidden\>
- Date: 2013-05-29 15:33:44 
- List: netdev
- Page: https://ratatoskr.run/netdev/2013/05/4056754
- Thread: https://ratatoskr.run/netdev/2013/05/4056747/t.md

```text
xemaclite_adjust_link is used locally.
It removes sparse warning:
drivers/net/ethernet/xilinx/xilinx_emaclite.c:916:6: warning:
symbol 'xemaclite_adjust_link' was not declared. Should it be static?

Signed-off-by: Michal Simek <redacted>
---
 drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index fcd1e0b..93bb14e 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -913,7 +913,7 @@ err_register:
  * There's nothing in the Emaclite device to be configured when the link
  * state changes. We just print the status.
  */
-void xemaclite_adjust_link(struct net_device *ndev)
+static void xemaclite_adjust_link(struct net_device *ndev)
 {
 	struct net_local *lp = netdev_priv(ndev);
 	struct phy_device *phy = lp->phy_dev;
--
1.8.2.3

```

## Attachments

- [(unnamed)](https://ratatoskr.run/netdev/2013/05/4056754/attachment/0) (application/pgp-signature, 198 bytes)
