Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] netxen_nic: add missing prototype for netxen_nic_set_link_parameters()
@ 2026-11-12  7:06 Chen Aibing
  0 siblings, 0 replies; only message in thread
From: Chen Aibing @ 2026-11-12  7:06 UTC (permalink / raw)
  To: netdev; +Cc: manishc, rahulv



From: chenaibing <chenaibing@cmss.chinamobile.com>

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 <chenaibing@cmss.chinamobile.com>
---
 drivers/net/ethernet/qlogic/netxen/netxen_nic.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic.h b/drivers/net/ethernet/qlogic/netxen/netxen_nic.h
index 1234567890ab..abcdef123456 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic.h
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic.h
@@ -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;
 
-- 
2.39.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-12  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  7:06 [PATCH net-next] netxen_nic: add missing prototype for netxen_nic_set_link_parameters() Chen Aibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox