Skip to contentSkip to conversation

netxen_nic: add missing prototype for netxen_nic_set_link_parameters()

PATCH New Chen Aibing 1 participant 1 message Nov 12

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netxen_nic: add missing prototype for netxen_nic_set_link_parameters()

From: chenaibing <[email protected]>

Fix the following W=1 warning when building with -Wmissing-prototypes:

drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c: warning: no previous prototype for 'netxen_nic_set_link_parameters' [-Wmissing-prototypes]

The function is defined in netxen_nic_hw.c and called from other files in the driver. Add the missing declaration to the shared header.

---
 drivers/net/ethernet/qlogic/netxen/netxen_nic.h | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/qlogic/netxen/netxen_nic.h +1 -0
index 1234567890ab..abcdef123456 100644
@@ -1574,6 +1574,7 @@ int netxen_get_flash_mac_addr(struct netxen_adapter *adapter, u64 *mac);
 int netxen_p3_get_mac_addr(struct netxen_adapter *adapter, u64 *mac);
 void netxen_change_ringparam(struct netxen_adapter *adapter);
+void netxen_nic_set_link_parameters(struct netxen_adapter *adapter);
 
 extern const struct ethtool_ops netxen_nic_ethtool_ops;
 
Signature · 1 line
2.39.0