mxm_wifiex: fix wlan_cmd_mfg_otp_rw() build warnings

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 <sherry.sun@nxp.com>
This commit is contained in:
Sherry Sun 2024-01-18 17:37:18 +08:00
parent 08c1478cb7
commit a84df58315

View file

@ -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 =