mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
88372772ba
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> |
||
---|---|---|
.. | ||
mlan.h | ||
mlan_decl.h | ||
mlan_ieee.h | ||
mlan_ioctl.h | ||
moal_cfg80211.c | ||
moal_cfg80211.h | ||
moal_cfg80211_util.c | ||
moal_cfg80211_util.h | ||
moal_debug.c | ||
moal_eth_ioctl.c | ||
moal_eth_ioctl.h | ||
moal_init.c | ||
moal_ioctl.c | ||
moal_main.c | ||
moal_main.h | ||
moal_pcie.c | ||
moal_pcie.h | ||
moal_priv.c | ||
moal_priv.h | ||
moal_proc.c | ||
moal_sdio.h | ||
moal_sdio_mmc.c | ||
moal_shim.c | ||
moal_shim.h | ||
moal_sta_cfg80211.c | ||
moal_sta_cfg80211.h | ||
moal_uap.c | ||
moal_uap.h | ||
moal_uap_cfg80211.c | ||
moal_uap_cfg80211.h | ||
moal_uap_priv.c | ||
moal_uap_priv.h | ||
moal_uap_wext.c | ||
moal_usb.c | ||
moal_usb.h | ||
moal_wext.c | ||
moal_wext.h |