From a84df583155bad2a396a937056805550bdf655ab Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Thu, 18 Jan 2024 17:37:18 +0800 Subject: [PATCH] mxm_wifiex: fix wlan_cmd_mfg_otp_rw() build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When build wifi driver based on L6.7 kernel next tree, will observe the following build warning. Need to add static to avoid the build warning. /mwifiex/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c:523:13: warning: no previous prototype for ‘wlan_cmd_mfg_otp_rw’ [-Wmissing-prototypes] 523 | mlan_status wlan_cmd_mfg_otp_rw(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, | ^~~~~~~~~~~~~~~~~~~ CC [M] /mwifiex/mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.o Signed-off-by: Sherry Sun --- mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c b/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c index 3bae55c..01cfebe 100644 --- a/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c +++ b/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c @@ -520,7 +520,7 @@ static mlan_status wlan_cmd_mfg_he_tb_tx(pmlan_private pmpriv, HostCmd_DS_COMMAN * @return MLAN_STATUS_SUCCESS */ -mlan_status wlan_cmd_mfg_otp_rw(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, +static mlan_status wlan_cmd_mfg_otp_rw(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, t_u16 action, t_void *pdata_buf) { mfg_cmd_otp_mac_addr_rd_wr_t *mcmd =