From 33ae3cbc474a231c1b19275ac25d32f52ec6e9b6 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Mon, 29 Apr 2024 11:07:26 +0800 Subject: [PATCH] mxm_wifiex: fix woal_process_event_tx_status() and woal_uap_wacp_mode() build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When build wifi driver based on L6.9 kernel next tree, will observe the following build warnings. Need to add static to avoid the build warnings. /mwifiex/mlinux/moal_shim.c:2768:8: warning: no previous prototype for ‘woal_process_event_tx_status’ [-Wmissing-prototypes] 2768 | t_void woal_process_event_tx_status(moal_private *priv, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /mwifiex/mlinux/moal_uap.c:2560:5: warning: no previous prototype for ‘woal_uap_wacp_mode’ [-Wmissing-prototypes] 2560 | int woal_uap_wacp_mode(struct net_device *dev, struct ifreq *req) | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Sherry Sun --- mlinux/moal_shim.c | 2 +- mlinux/moal_uap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlinux/moal_shim.c b/mlinux/moal_shim.c index c677c4e..16f61e6 100644 --- a/mlinux/moal_shim.c +++ b/mlinux/moal_shim.c @@ -2765,7 +2765,7 @@ static mlan_status wlan_process_defer_event(moal_handle *handle, * * @return N/A */ -t_void woal_process_event_tx_status(moal_private *priv, +static t_void woal_process_event_tx_status(moal_private *priv, tx_mgmt_status_event *tx_status) { unsigned long flag; diff --git a/mlinux/moal_uap.c b/mlinux/moal_uap.c index 9ccbecf..32906c6 100644 --- a/mlinux/moal_uap.c +++ b/mlinux/moal_uap.c @@ -2557,7 +2557,7 @@ done: * * @return 0 --success, otherwise fail */ -int woal_uap_wacp_mode(struct net_device *dev, struct ifreq *req) +static int woal_uap_wacp_mode(struct net_device *dev, struct ifreq *req) { moal_private *priv = (moal_private *)netdev_priv(dev); mlan_ioctl_req *ioctl_req = NULL;