[frank-w-bpi-r2-4.14:5.17-r2pro-hdmiv5 16/90] 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"
by kernel test robot
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
7 months, 1 week
[linux-next:master 3267/4901] arch/powerpc/platforms/powermac/nvram.c:304:24: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 395a61741f7ea29e1f4a0d6e160197fe8e377572
commit: 4cfbda15d6578759c0157b18698e0c10ba598856 [3267/4901] fortify: Add Clang support
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220211/202202110552.DxobMxL7-lk...)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 4cfbda15d6578759c0157b18698e0c10ba598856
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/platforms/powermac/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/platforms/powermac/nvram.c:304:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got unsigned char [noderef] [usertype] __iomem *base @@
arch/powerpc/platforms/powermac/nvram.c:304:24: sparse: expected void const *const p
arch/powerpc/platforms/powermac/nvram.c:304:24: sparse: got unsigned char [noderef] [usertype] __iomem *base
arch/powerpc/platforms/powermac/nvram.c:338:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got unsigned char [noderef] [usertype] __iomem *base @@
arch/powerpc/platforms/powermac/nvram.c:338:20: sparse: expected void const *const p
arch/powerpc/platforms/powermac/nvram.c:338:20: sparse: got unsigned char [noderef] [usertype] __iomem *base
arch/powerpc/platforms/powermac/nvram.c:384:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got unsigned char [noderef] [usertype] __iomem *base @@
arch/powerpc/platforms/powermac/nvram.c:384:24: sparse: expected void const *const p
arch/powerpc/platforms/powermac/nvram.c:384:24: sparse: got unsigned char [noderef] [usertype] __iomem *base
arch/powerpc/platforms/powermac/nvram.c:429:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got unsigned char [noderef] [usertype] __iomem *base @@
arch/powerpc/platforms/powermac/nvram.c:429:20: sparse: expected void const *const p
arch/powerpc/platforms/powermac/nvram.c:429:20: sparse: got unsigned char [noderef] [usertype] __iomem *base
arch/powerpc/platforms/powermac/nvram.c:480:35: sparse: sparse: cast removes address space '__iomem' of expression
arch/powerpc/platforms/powermac/nvram.c:526:35: sparse: sparse: cast removes address space '__iomem' of expression
arch/powerpc/platforms/powermac/nvram.c:527:35: sparse: sparse: cast removes address space '__iomem' of expression
arch/powerpc/platforms/powermac/nvram.c:534:44: sparse: sparse: dereference of noderef expression
vim +304 arch/powerpc/platforms/powermac/nvram.c
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 279
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 280 static int sm_erase_bank(int bank)
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 281 {
2d4b971287cbce arch/powerpc/platforms/powermac/nvram.c Akinobu Mita 2012-01-27 282 int stat;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 283 unsigned long timeout;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 284
af308377e204e2 arch/powerpc/platforms/powermac/nvram.c Stephen Rothwell 2006-03-23 285 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 286
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 287 DBG("nvram: Sharp/Micron Erasing bank %d...\n", bank);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 288
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 289 out_8(base, SM_FLASH_CMD_ERASE_SETUP);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 290 out_8(base, SM_FLASH_CMD_ERASE_CONFIRM);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 291 timeout = 0;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 292 do {
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 293 if (++timeout > 1000000) {
35499c0195e46f arch/powerpc/platforms/powermac/nvram.c Paul Mackerras 2005-10-22 294 printk(KERN_ERR "nvram: Sharp/Micron flash erase timeout !\n");
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 295 break;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 296 }
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 297 out_8(base, SM_FLASH_CMD_READ_STATUS);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 298 stat = in_8(base);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 299 } while (!(stat & SM_FLASH_STATUS_DONE));
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 300
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 301 out_8(base, SM_FLASH_CMD_CLEAR_STATUS);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 302 out_8(base, SM_FLASH_CMD_RESET);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 303
2d4b971287cbce arch/powerpc/platforms/powermac/nvram.c Akinobu Mita 2012-01-27 @304 if (memchr_inv(base, 0xff, NVRAM_SIZE)) {
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 305 printk(KERN_ERR "nvram: Sharp/Micron flash erase failed !\n");
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 306 return -ENXIO;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 307 }
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 308 return 0;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 309 }
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_nvram.c Paul Mackerras 2005-09-26 310
:::::: The code at line 304 was first introduced by commit
:::::: 2d4b971287cbce16585acda4b76308faa8da0950 powerpc/pmac: Use string library in nvram code
:::::: TO: Akinobu Mita <akinobu.mita(a)gmail.com>
:::::: CC: Benjamin Herrenschmidt <benh(a)kernel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[intel-lts:5.10/yocto 11591/20393] drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1415:20: sparse: sparse: cast to restricted __le16
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 2dafc777a64181d42982628c7f5907a03da5f070
commit: ac3e410097ad3e26ceaa813bd153a0c24cee7f74 [11591/20393] drm/msm: Fix speed-bin support not to access outside valid memory
config: arm64-randconfig-s031-20220208 (https://download.01.org/0day-ci/archive/20220211/202202110409.gAs9Wskk-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/intel/linux-intel-lts/commit/ac3e410097ad3e26ceaa813bd...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout ac3e410097ad3e26ceaa813bd153a0c24cee7f74
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/msm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: note: in included file (through drivers/gpu/drm/msm/msm_gpu.h, drivers/gpu/drm/msm/adreno/adreno_gpu.h, drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
include/linux/adreno-smmu-priv.h:36:33: sparse: sparse: no newline at end of file
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1173:36: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *llc_mmio @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1173:36: sparse: expected void [noderef] __iomem *llc_mmio
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1173:36: sparse: got void *
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1415:20: sparse: sparse: cast to restricted __le16
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1415:20: sparse: sparse: cast to restricted __le16
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1415:20: sparse: sparse: cast to restricted __le16
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1415:20: sparse: sparse: cast to restricted __le16
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: note: in included file (through drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:26: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:26: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
vim +1415 drivers/gpu/drm/msm/adreno/a6xx_gpu.c
1399
1400 static int a6xx_set_supported_hw(struct device *dev, struct a6xx_gpu *a6xx_gpu,
1401 u32 revn)
1402 {
1403 struct opp_table *opp_table;
1404 u32 supp_hw = UINT_MAX;
1405 u16 speedbin;
1406 int ret;
1407
1408 ret = nvmem_cell_read_u16(dev, "speed_bin", &speedbin);
1409 if (ret) {
1410 DRM_DEV_ERROR(dev,
1411 "failed to read speed-bin (%d). Some OPPs may not be supported by hardware",
1412 ret);
1413 goto done;
1414 }
> 1415 speedbin = le16_to_cpu(speedbin);
1416
1417 supp_hw = fuse_to_supp_hw(dev, revn, speedbin);
1418
1419 done:
1420 opp_table = dev_pm_opp_set_supported_hw(dev, &supp_hw, 1);
1421 if (IS_ERR(opp_table))
1422 return PTR_ERR(opp_table);
1423
1424 a6xx_gpu->opp_table = opp_table;
1425 return 0;
1426 }
1427
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[intel-lts:5.10/yocto 18526/20393] drivers/gpio/gpio-ehl-pse-plat.c:79:6: warning: no previous prototype for 'ehl_pse_gpio_free'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 2dafc777a64181d42982628c7f5907a03da5f070
commit: 0bce160955505f13b1c53ce6c48eaa49f3dd472d [18526/20393] mfd: intel-ehl-gpio: Introduce MFD framework to PSE GPIO/TGPIO
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220211/202202110420.D6I0HID3-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/0bce160955505f13b1c53ce6c...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout 0bce160955505f13b1c53ce6c48eaa49f3dd472d
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/crypto/ drivers/gpio/ drivers/gpu/drm/i915/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpio/gpio-ehl-pse-plat.c:79:6: warning: no previous prototype for 'ehl_pse_gpio_free' [-Wmissing-prototypes]
79 | void ehl_pse_gpio_free(struct gpio_chip *chip, unsigned int offset)
| ^~~~~~~~~~~~~~~~~
drivers/gpio/gpio-ehl-pse-plat.c: In function 'ehl_pse_gpio_get_direction':
drivers/gpio/gpio-ehl-pse-plat.c:175:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
175 | u32 reg_gpdr = intel_gpio_readl(priv->reg_base, GPDR);
| ^~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from drivers/gpio/gpio-ehl-pse-plat.c:9:
drivers/gpio/gpio-ehl-pse-plat.c: In function 'ehl_pse_gpio_probe':
include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/gpio/gpio-ehl-pse-plat.c:378:10: note: in expansion of macro 'NULL'
378 | return NULL;
| ^~~~
include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/gpio/gpio-ehl-pse-plat.c:382:10: note: in expansion of macro 'NULL'
382 | return NULL;
| ^~~~
drivers/gpio/gpio-ehl-pse-plat.c:365:16: warning: unused variable 'base' [-Wunused-variable]
365 | void __iomem *base;
| ^~~~
vim +/ehl_pse_gpio_free +79 drivers/gpio/gpio-ehl-pse-plat.c
78
> 79 void ehl_pse_gpio_free(struct gpio_chip *chip, unsigned int offset)
80 {
81 /* decrease runtime_usage counter */
82 pm_runtime_put_sync(chip->parent);
83 }
84
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week