From: "Chen Aibing" <chenaibingfly@126.com>
To: netdev@vger.kernel.org
Cc: manishc@marvell.com, rahulv@marvell.com
Subject: [PATCH net-next] netxen_nic: add missing prototype for netxen_nic_set_link_parameters()
Date: Thu, 12 Nov 2026 15:06:04 +0800 (CST) [thread overview]
Message-ID: <66745163.49c6.1a1ce93f261.Coremail.chenaibingfly@126.com> (raw)
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
reply other threads:[~2026-11-12 7:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66745163.49c6.1a1ce93f261.Coremail.chenaibingfly@126.com \
--to=chenaibingfly@126.com \
--cc=manishc@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=rahulv@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox