netxen_nic: add missing prototype for netxen_nic_set_link_parameters()
Subsystems (3)
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.
Signed-off-by chenaibing <[email protected]>
--- drivers/net/ethernet/qlogic/netxen/netxen_nic.h | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/qlogic/netxen/netxen_nic.h +1 -0
@@ -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