tree:
https://github.com/frank-w/BPI-R2-4.14 5.17-r2pro-hdmiv5
head: d3caa4feb01d5561ed298aaebe33b0e2ce4aa9f5
commit: 741a809b69a5fc22105ce47dc43839fba1d33cf0 [16/90] mt6625l: fix makefiles to filter
without quotes
config: arm-randconfig-r002-20220211
(
https://download.01.org/0day-ci/archive/20220211/202202110544.FfsrfMf1-lk...)
compiler: clang version 15.0.0 (
https://github.com/llvm/llvm-project
aa845d7a245d85c441d0bd44fc7b6c3be8f3de8d)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/frank-w/BPI-R2-4.14/commit/741a809b69a5fc22105ce47dc43...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.17-r2pro-hdmiv5
git checkout 741a809b69a5fc22105ce47dc43839fba1d33cf0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=arm SHELL=/bin/bash drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/
drivers/misc/mediatek/connectivity/wlan/gen2/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2004:14: warning: variable
'prTxCtrl' set but not used [-Wunused-but-set-variable]
P_TX_CTRL_T prTxCtrl;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2575:16: warning: variable
'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3269:14: warning:
variable 'prTxCtrl' set but not used [-Wunused-but-set-variable]
P_TX_CTRL_T prTxCtrl;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3270:14: warning: variable
'prRxCtrl' set but not used [-Wunused-but-set-variable]
P_RX_CTRL_T prRxCtrl;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5431:1: warning: no
previous prototype for function 'wlanoidQueryACSChannelList'
[-Wmissing-prototypes]
wlanoidQueryACSChannelList(IN P_ADAPTER_T prAdapter,
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5430:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
WLAN_STATUS
^
static
5 warnings generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1384:16: warning: variable
'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1704:9: warning: variable
'i4Idx' set but not used [-Wunused-but-set-variable]
INT_32 i4Idx
= -1;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1963:9: warning:
variable 'i4Idx' set but not used [-Wunused-but-set-variable]
INT_32 i4Idx = -1, i4MaxRSSI = INT_MIN;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2218:16: warning:
variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2388:16: warning:
variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:3496:16: warning:
variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:5428:16: warning:
variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:10356:16: warning: variable
'prScanInfo' set but not used [-Wunused-but-set-variable]
P_SCAN_INFO_T prScanInfo;
^
8 warnings generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:997:18: warning: variable
'prBowReadRSSI' set but not used [-Wunused-but-set-variable]
P_BOW_READ_RSSI prBowReadRSSI;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1029:26: warning: variable
'prBowReadLinkQuality' set but not used [-Wunused-but-set-variable]
P_BOW_READ_LINK_QUALITY prBowReadLinkQuality;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1439:41: warning: cast
from 'VOID (*)(P_ADAPTER_T, P_MSDU_INFO_T, ENUM_TX_RESULT_CODE_T)' (aka 'void
(*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)') to
'PFN_TX_DONE_HANDLER' (aka 'unsigned int (*)(struct _ADAPTER_T *, struct
_MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)') converts to incompatible function type
[-Wcast-function-type]
REASON_CODE_DEAUTH_LEAVING_BSS,
(PFN_TX_DONE_HANDLER) bowDisconnectLink);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1492:19: warning: variable
'prBowFsmInfo' set but not used [-Wunused-but-set-variable]
P_BOW_FSM_INFO_T prBowFsmInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1650:15: warning: variable
'prBowBssInfo' set but not used [-Wunused-but-set-variable]
P_BSS_INFO_T prBowBssInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1649:19: warning:
variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable]
P_BOW_FSM_INFO_T prBowFsmInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1953:19: warning:
variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable]
P_BOW_FSM_INFO_T prBowFsmInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2051:15: warning: variable
'prBssInfo' set but not used [-Wunused-but-set-variable]
P_BSS_INFO_T prBssInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2356:15: warning:
variable 'prBssInfo' set but not used [-Wunused-but-set-variable]
P_BSS_INFO_T prBssInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2617:19: warning:
variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable]
P_BOW_FSM_INFO_T prBowFsmInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2656:15: warning:
variable 'prBowBssInfo' set but not used [-Wunused-but-set-variable]
P_BSS_INFO_T prBowBssInfo;
^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2971:15: warning:
variable 'prBowBssInfo' set but not used [-Wunused-but-set-variable]
P_BSS_INFO_T prBowBssInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:3266:100: warning:
parameter 'prBowTable' set but not used [-Wunused-but-set-parameter]
BOOLEAN bowGetBowTableContent(IN P_ADAPTER_T prAdapter, IN UINT_8 ucBowTableIdx, OUT
P_BOW_TABLE_T prBowTable)
^
13 warnings generated.
--
In file included from
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:218:
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_p2p_ioctl.h:570:2: error:
"Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
#error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support
Wi-Fi Direct"
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:1527:9: warning: variable
'ucVersionNum' set but not used [-Wunused-but-set-variable]
UINT_8 ucVersionNum;
^
1 warning and 1 error generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_tx.c:1082:12: warning: variable
'ucNetIndex' set but not used [-Wunused-but-set-variable]
UINT_8 ucNetIndex;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_tx.c:1010:10: warning: variable
'u4PktPrintPeriod' set but not used [-Wunused-but-set-variable]
UINT_32 u4PktPrintPeriod = 0;
^
2 warnings generated.
--
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:827:
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:61:5: warning:
'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if
CONFIG_NL80211_TESTMODE
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:70:5:
warning: 'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_NL80211_TESTMODE
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:301:5:
warning: 'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_NL80211_TESTMODE
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:332:2: error:
"Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
#error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support
Wi-Fi Direct"
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:1337:14: warning: variable
'prTxCtrl' set but not used [-Wunused-but-set-variable]
P_TX_CTRL_T prTxCtrl;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:2371:11: warning: variable
'realnum' set but not used [-Wunused-but-set-variable]
UINT_8 realnum = 0;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:1727:16: warning: variable
'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c:3078:16: warning: variable
'prSDIOCtrl' set but not used [-Wunused-but-set-variable]
P_SDIO_CTRL_T prSDIOCtrl;
^
7 warnings and 1 error generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:1115:12: warning: no previous
prototype for function 'qmFlushStaRxQueue' [-Wmissing-prototypes]
P_SW_RFB_T qmFlushStaRxQueue(IN P_ADAPTER_T prAdapter, IN UINT_32 u4StaRecIdx, IN UINT_32
u4Tid)
^
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:1115:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
P_SW_RFB_T qmFlushStaRxQueue(IN P_ADAPTER_T prAdapter, IN UINT_32 u4StaRecIdx, IN
UINT_32 u4Tid)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:2872:10: warning: variable
'prReorderQue' set but not used [-Wunused-but-set-variable]
P_QUE_T prReorderQue;
^
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:3028:10: warning: variable
'prReorderQue' set but not used [-Wunused-but-set-variable]
P_QUE_T prReorderQue;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:3116:40: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
if (((prExaminedQueuedSwRfb->u2SSN) == (prSwRfb->u2SSN))) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:3116:40: note: remove
extraneous parentheses around the comparison to silence this warning
if (((prExaminedQueuedSwRfb->u2SSN) == (prSwRfb->u2SSN)))
{
~ ^ ~
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:3116:40: note: use
'=' to turn this equality comparison into an assignment
if (((prExaminedQueuedSwRfb->u2SSN) == (prSwRfb->u2SSN)))
{
^~
=
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:3623:10: warning: variable
'pucIEStart' set but not used [-Wunused-but-set-variable]
PUINT_8
pucIEStart;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c:5021:72: warning: address of
array 'prBssInfo->prStaRecOfAP->aucMacAddr' will always evaluate to
'true' [-Wpointer-bool-conversion]
if (prBssInfo
&& prBssInfo->prStaRecOfAP &&
prBssInfo->prStaRecOfAP->aucMacAddr) {
~~
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
6 warnings generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_cmd_event.c:1019:21: warning:
variable 'prEventStatistics' set but not used [-Wunused-but-set-variable]
P_EVENT_STATISTICS prEventStatistics;
^
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_cmd_event.c:1083:21: warning:
variable 'prEventStatistics' set but not used [-Wunused-but-set-variable]
P_EVENT_STATISTICS prEventStatistics;
^
2 warnings generated.
--
In file included from
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:673:
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:61:5: warning:
'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if
CONFIG_NL80211_TESTMODE
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:70:5:
warning: 'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_NL80211_TESTMODE
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:301:5:
warning: 'CONFIG_NL80211_TESTMODE' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_NL80211_TESTMODE
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_cfg80211.h:332:2: error:
"Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
#error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support
Wi-Fi Direct"
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1136:14: warning: no
previous prototype for function '_cfg80211_classify8021d' [-Wmissing-prototypes]
unsigned int _cfg80211_classify8021d(struct sk_buff *skb)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1136:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
unsigned int _cfg80211_classify8021d(struct sk_buff *skb)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1534:5: warning: no
previous prototype for function 'wlanDoIOCTL' [-Wmissing-prototypes]
int
wlanDoIOCTL(struct net_device *prDev, struct ifreq *prIfReq, int i4Cmd)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1534:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
int wlanDoIOCTL(struct net_device *prDev, struct ifreq *prIfReq, int i4Cmd)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1841:6: warning: no
previous prototype for function 'wlanSchedScanStoppedWorkQueue'
[-Wmissing-prototypes]
VOID wlanSchedScanStoppedWorkQueue(struct work_struct
*work)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:1841:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
VOID wlanSchedScanStoppedWorkQueue(struct work_struct *work)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2022:26: warning: no
previous prototype for function 'wlanGetStats' [-Wmissing-prototypes]
struct net_device_stats *wlanGetStats(IN struct net_device *prDev)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2022:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
struct net_device_stats *wlanGetStats(IN struct net_device *prDev)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2079:16: warning: variable
'prGlueInfo' set but not used [-Wunused-but-set-variable]
P_GLUE_INFO_T prGlueInfo = NULL;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2764:14: warning: variable
'rWlanStatus' set but not used [-Wunused-but-set-variable]
WLAN_STATUS rWlanStatus = WLAN_STATUS_SUCCESS;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3079:21: error: passing
'const unsigned char *' to parameter of type 'u8 *' (aka 'unsigned
char *') discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
ether_addr_copy(prGlueInfo->prDevHandler->dev_addr, (const u8
*)&(MacAddr.sa_data));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/etherdevice.h:295:40: note: passing argument to parameter 'dst'
here
static inline void ether_addr_copy(u8 *dst, const u8 *src)
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:2860:19: warning: variable
'prWlandevInfo' set but not used [-Wunused-but-set-variable]
P_WLANDEV_INFO_T prWlandevInfo = NULL;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3252:19: warning:
variable 'prWlandevInfo' set but not used [-Wunused-but-set-variable]
P_WLANDEV_INFO_T prWlandevInfo = NULL;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3502:5: warning: no
previous prototype for function 'mtk_wcn_wlan_gen2_init' [-Wmissing-prototypes]
int mtk_wcn_wlan_gen2_init(void)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3502:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
int mtk_wcn_wlan_gen2_init(void)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3508:6: warning: no
previous prototype for function 'mtk_wcn_wlan_gen2_exit' [-Wmissing-prototypes]
void mtk_wcn_wlan_gen2_exit(void)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:3508:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
void mtk_wcn_wlan_gen2_exit(void)
^
static
13 warnings and 2 errors generated.
--
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:803:13: warning: no
previous prototype for function 'kalFirmwareOpen' [-Wmissing-prototypes]
WLAN_STATUS kalFirmwareOpen(IN P_GLUE_INFO_T prGlueInfo)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:803:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
WLAN_STATUS kalFirmwareOpen(IN P_GLUE_INFO_T prGlueInfo)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:891:13: warning: no
previous prototype for function 'kalFirmwareClose' [-Wmissing-prototypes]
WLAN_STATUS kalFirmwareClose(IN P_GLUE_INFO_T prGlueInfo)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:891:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
WLAN_STATUS kalFirmwareClose(IN P_GLUE_INFO_T prGlueInfo)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:926:13: warning: no
previous prototype for function 'kalFirmwareLoad' [-Wmissing-prototypes]
WLAN_STATUS kalFirmwareLoad(IN P_GLUE_INFO_T prGlueInfo, OUT PVOID prBuf, IN UINT_32
u4Offset, OUT PUINT_32 pu4Size)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:926:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
WLAN_STATUS kalFirmwareLoad(IN P_GLUE_INFO_T prGlueInfo, OUT PVOID prBuf, IN UINT_32
u4Offset, OUT PUINT_32 pu4Size)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:970:13: warning: no
previous prototype for function 'kalFirmwareSize' [-Wmissing-prototypes]
WLAN_STATUS kalFirmwareSize(IN P_GLUE_INFO_T prGlueInfo, OUT PUINT_32 pu4Size)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:970:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
WLAN_STATUS kalFirmwareSize(IN P_GLUE_INFO_T prGlueInfo, OUT PUINT_32 pu4Size)
^
static
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1209:10: error: passing
'const unsigned char *' to parameter of type 'void *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
memcpy(prGlueInfo->prDevHandler->dev_addr, pucMacAddr,
PARAM_MAC_ADDR_LEN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/include/asm/string.h:20:28: note: passing argument to parameter here
extern void * memcpy(void *, const void *, __kernel_size_t);
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:2121:6: warning: no
previous prototype for function 'kalQueryRegistryMacAddr' [-Wmissing-prototypes]
VOID kalQueryRegistryMacAddr(IN P_GLUE_INFO_T prGlueInfo, OUT PUINT_8
paucMacAddr)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:2121:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
VOID kalQueryRegistryMacAddr(IN P_GLUE_INFO_T prGlueInfo, OUT PUINT_8 paucMacAddr)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:2719:6: warning: variable
'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3821:6: warning: variable
'err' set but not used [-Wunused-but-set-variable]
int err = 0;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3817:14: warning: no
previous prototype for function 'kalFileOpen' [-Wmissing-prototypes]
struct file *kalFileOpen(const char *path, int flags, int rights)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3817:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
struct file *kalFileOpen(const char *path, int flags, int rights)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3834:6: warning: no
previous prototype for function 'kalFileClose' [-Wmissing-prototypes]
VOID kalFileClose(struct file *file)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3834:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
VOID kalFileClose(struct file *file)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3839:9: warning: no
previous prototype for function 'kalFileRead' [-Wmissing-prototypes]
UINT_32 kalFileRead(struct file *file, UINT_64 offset, UINT_8 *data, UINT_32 size)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3839:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
UINT_32 kalFileRead(struct file *file, UINT_64 offset, UINT_8 *data, UINT_32 size)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3853:9: warning: no
previous prototype for function 'kalFileWrite' [-Wmissing-prototypes]
UINT_32 kalFileWrite(struct file *file, UINT_64 offset, UINT_8 *data, UINT_32 size)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3853:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
UINT_32 kalFileWrite(struct file *file, UINT_64 offset, UINT_8 *data, UINT_32 size)
^
static
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:3985:28: warning: variable
'rChannelType' set but not used [-Wunused-but-set-variable]
enum
nl80211_channel_type rChannelType;
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4041:28: warning:
variable 'rChannelType' set but not used [-Wunused-but-set-variable]
enum nl80211_channel_type rChannelType;
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4162:24: error: implicit
declaration of function 'cfg80211_testmode_alloc_event_skb'
[-Werror,-Wimplicit-function-declaration]
struct sk_buff *skb =
cfg80211_testmode_alloc_event_skb(priv_to_wiphy(prGlueInfo),
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4162:24: note: did you
mean '__cfg80211_alloc_event_skb'?
include/net/cfg80211.h:6809:17: note: '__cfg80211_alloc_event_skb' declared
here
struct sk_buff *__cfg80211_alloc_event_skb(struct wiphy *wiphy,
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4162:18: warning:
incompatible integer to pointer conversion initializing 'struct sk_buff *' with an
expression of type 'int' [-Wint-conversion]
struct sk_buff *skb =
cfg80211_testmode_alloc_event_skb(priv_to_wiphy(prGlueInfo),
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4179:2: error: implicit
declaration of function 'cfg80211_testmode_event'
[-Werror,-Wimplicit-function-declaration]
cfg80211_testmode_event(skb,
GFP_KERNEL);
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4179:2: note: did you
mean 'cfg80211_vendor_event'?
include/net/cfg80211.h:6945:20: note: 'cfg80211_vendor_event' declared here
static inline void cfg80211_vendor_event(struct sk_buff *skb, gfp_t gfp)
^
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4587:6: warning: no
previous prototype for function 'kalPerMonDump' [-Wmissing-prototypes]
VOID kalPerMonDump(IN P_GLUE_INFO_T prGlueInfo)
^
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:4587:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
VOID kalPerMonDump(IN P_GLUE_INFO_T prGlueInfo)
^
static
15 warnings and 3 errors generated.
..
vim +570 drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_p2p_ioctl.h
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 567
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 568 int
mtk_p2p_cfg80211_testmode_hotspot_block_cmd(IN struct wiphy *wiphy, IN void *data, IN int
len);
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 569 #else
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 @570 #error "Please ENABLE kernel config
(CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 571 #endif
40b7b77e58eeb9 Frank Wunderlich 2022-01-30 572
:::::: The code at line 570 was first introduced by commit
:::::: 40b7b77e58eeb92ede9e7842153047eb5d4e8942 mt6625l: add driver folder from 5.16
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org