mwifiex/mlinux
Sherry Sun 88372772ba fix build warnings on L6.9 kernel tree
When build wifi driver based on L6.9 kernel next tree, will observe the
following three different type build warnings. Need to add the code
changes here to avoid the build warnings.

/mwifiex/mlan/mlan_11h.c:1676:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
 1676 | t_u8 static wlan_11h_check_dfs_channel(mlan_adapter *pmadapter)
      | ^~~~
  CC [M]  /mwifiex/mlan/mlan_uap_cmdevent.o
/mwifiex/mlan/mlan_11h.c:1712:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
 1712 | mlan_status static wlan_11h_disable_dfs(mlan_private *priv, t_void *pioctl_buf)
      | ^~~~~~~~~~~

/mwifiex/mlinux/moal_eth_ioctl.c: In function ‘parse_arguments’:
/mwifiex/mlinux/moal_eth_ioctl.c:159:41: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  159 |                                         ;
      |                                         ^

/mwifiex/mlinux/moal_eth_ioctl.c: In function ‘woal_priv_hssetpara.isra’:
/mwifiex/mlinux/moal_eth_ioctl.c:5159:17: warning: ‘snprintf’ argument 6 may overlap destination object ‘respbuf’ [-Wrestrict]
 5159 |                 snprintf(respbuf, CMD_BUF_LEN, "%s%s%s", CMD_NXP,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 5160 |                          PRIV_CMD_HSCFG,
      |                          ~~~~~~~~~~~~~~~
 5161 |                          respbuf + (strlen(CMD_NXP) +
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 5162 |                                     strlen(PRIV_CMD_HSSETPARA)));
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mwifiex/mlinux/moal_eth_ioctl.c:5131:58: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
 5131 | static int woal_priv_hssetpara(moal_private *priv, t_u8 *respbuf,
      |                                                    ~~~~~~^~~~~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-06-03 12:40:39 +08:00
..
mlan.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
mlan_decl.h mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
mlan_ieee.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
mlan_ioctl.h mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_cfg80211.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_cfg80211.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_cfg80211_util.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_cfg80211_util.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_debug.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_eth_ioctl.c fix build warnings on L6.9 kernel tree 2024-06-03 12:40:39 +08:00
moal_eth_ioctl.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_init.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_ioctl.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_main.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_main.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_pcie.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_pcie.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_priv.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_priv.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_proc.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_sdio.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_sdio_mmc.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_shim.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_shim.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_sta_cfg80211.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_sta_cfg80211.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap.c mxm_wifiex: fix woal_process_event_tx_status() and woal_uap_wacp_mode() build warnings 2024-05-08 14:27:30 +08:00
moal_uap.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_cfg80211.c mxm_wifiex: update to mxm6x17437.p21 release 2024-05-28 10:42:32 +08:00
moal_uap_cfg80211.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_priv.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_priv.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_wext.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_usb.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_usb.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_wext.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_wext.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00