[omap-audio:peter/linux-next-wip 45/94] sound/soc/codecs/tas2555.c:96:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 616dbf432c14c411575f7d278d2215534464e632
commit: 384dab064b9e80bfba455bc3c54b12acb4fd1d22 [45/94] ASoC: Initial driver for TAS2555 Smart Amplifier
config: i386-randconfig-r013-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/omap-audio/linux-audio/commit/384dab064b9e80bfba455bc3...
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout 384dab064b9e80bfba455bc3c54b12acb4fd1d22
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
sound/soc/codecs/tas2555.c: In function 'tas2555_read':
>> sound/soc/codecs/tas2555.c:96:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
96 | int ret;
| ^~~
vim +/ret +96 sound/soc/codecs/tas2555.c
90
91 static unsigned int tas2555_read(struct snd_soc_component *component,
92 unsigned int reg)
93 {
94 struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
95 unsigned int value = 0;
> 96 int ret;
97
98 dev_dbg(component->dev, "%s: BOOK:PAGE:REG %u:%u:%u\n", __func__,
99 TAS2555_BOOK_ID(reg), TAS2555_PAGE_ID(reg),
100 TAS2555_PAGE_REG(reg));
101 tas2555_change_book(tas2555, TAS2555_BOOK_ID(reg));
102 ret = regmap_read(tas2555->regmap, TAS2555_BOOK_REG(reg), &value);
103 return value;
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[frank-w-bpi-r2-4.14:5.10-rc 22/24] drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2406:1: error: no previous prototype for 'mtk_cfg80211_testmode_get_link_detection'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.10-rc
head: 9cab5c0a19ff709f07113ec5bd8e8cedbfdf6b08
commit: f43ce62478a0f245f0fcc53c073b54c31786f15e [22/24] mt6625l: add wifi-driver from 5.9
config: arm-randconfig-r024-20201213 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://github.com/frank-w/BPI-R2-4.14/commit/f43ce62478a0f245f0fcc53c073...
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.10-rc
git checkout f43ce62478a0f245f0fcc53c073b54c31786f15e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2406:1: error: no previous prototype for 'mtk_cfg80211_testmode_get_link_detection' [-Werror=missing-prototypes]
2406 | mtk_cfg80211_testmode_get_link_detection(IN struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2581:1: error: no previous prototype for 'mtk_cfg80211_testmode_set_poorlink_param' [-Werror=missing-prototypes]
2581 | mtk_cfg80211_testmode_set_poorlink_param(IN struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c: In function 'mtk_cfg80211_testmode_get_lte_channel':
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2762:24: error: variable 'prChnLoad' set but not used [-Werror=unused-but-set-variable]
2762 | P_PARAM_CHN_LOAD_INFO prChnLoad;
| ^~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2747:10: error: variable 'fgIsPureAP' set but not used [-Werror=unused-but-set-variable]
2747 | BOOLEAN fgIsPureAP, fgIsLteSafeChn = FALSE;
| ^~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:52:
At top level:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:48:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:909:31: error: 'proc_fops' defined but not used [-Werror=unused-const-variable=]
909 | static const struct proc_ops proc_fops = {
| ^~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:686:30: error: 'proc_CmdDebug_ops' defined but not used [-Werror=unused-const-variable=]
686 | static const struct proc_ops proc_CmdDebug_ops = {
| ^~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:658:30: error: 'auto_per_ops' defined but not used [-Werror=unused-const-variable=]
658 | static const struct proc_ops auto_per_ops = {
| ^~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:624:30: error: 'proc_txdone_ops' defined but not used [-Werror=unused-const-variable=]
624 | static const struct proc_ops proc_txdone_ops = {
| ^~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:540:30: error: 'dbglevel_ops' defined but not used [-Werror=unused-const-variable=]
540 | static const struct proc_ops dbglevel_ops = {
| ^~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:65:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:65:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_get_key':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:223:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
223 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_set_default_key':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:272:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
272 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_set_wiphy_params':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:455:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
455 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_join_ibss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:497:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
497 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_leave_ibss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:510:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
510 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_set_txpower':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:525:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
525 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_get_txpower':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:540:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
540 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_deauth':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:875:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
875 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_disassoc':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:890:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
890 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_change_bss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1066:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
1066 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_set_bitrate_mask':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1353:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
1353 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function 'mtk_p2p_cfg80211_testmode_p2p_sigma_pre_cmd':
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1620:10: error: variable 'index_mode' set but not used [-Werror=unused-but-set-variable]
1620 | UINT_32 index_mode;
| ^~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:109:
At top level:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:109:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/mach/mt7623/include/mach: No such file or directory [-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1289:7: error: no previous prototype for 'wmt_dev_dbg_setup' [-Werror=missing-prototypes]
1289 | INT32 wmt_dev_dbg_setup(VOID)
| ^~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function 'wmt_dev_dbg_setup':
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1291:31: error: unused variable 'wmt_dbg_fops' [-Werror=unused-variable]
1291 | static const struct proc_ops wmt_dbg_fops = {
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1303:7: error: no previous prototype for 'wmt_dev_dbg_remove' [-Werror=missing-prototypes]
1303 | INT32 wmt_dev_dbg_remove(VOID)
| ^~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1374:7: error: no previous prototype for 'wmt_dev_proc_for_aee_setup' [-Werror=missing-prototypes]
1374 | INT32 wmt_dev_proc_for_aee_setup(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function 'wmt_dev_proc_for_aee_setup':
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1376:31: error: unused variable 'wmt_aee_fops' [-Werror=unused-variable]
1376 | static const struct proc_ops wmt_aee_fops = {
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1390:7: error: no previous prototype for 'wmt_dev_proc_for_aee_remove' [-Werror=missing-prototypes]
1390 | INT32 wmt_dev_proc_for_aee_remove(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1435:7: error: no previous prototype for 'wmt_dev_read_file' [-Werror=missing-prototypes]
1435 | INT32 wmt_dev_read_file(PUINT8 pName, const PPUINT8 ppBufPtr, INT32 offset, INT32 padSzBuf)
| ^~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function 'wmt_dev_patch_get':
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1555:9: error: implicit declaration of function 'get_ds'; did you mean 'get_fs'? [-Werror=implicit-function-declaration]
1555 | set_fs(get_ds());
| ^~~~~~
| get_fs
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1597:14: error: no previous prototype for 'wmt_dev_is_file_exist' [-Werror=missing-prototypes]
1597 | MTK_WCN_BOOL wmt_dev_is_file_exist(PUINT8 pFileName)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1645:14: error: no previous prototype for 'wmt_dev_tra_bitf_update' [-Werror=missing-prototypes]
1645 | extern INT32 wmt_dev_tra_bitf_update(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1703:6: error: no previous prototype for 'wmt_dev_tm_temp_query' [-Werror=missing-prototypes]
1703 | long wmt_dev_tm_temp_query(void)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1801:9: error: no previous prototype for 'WMT_write' [-Werror=missing-prototypes]
1801 | ssize_t WMT_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1834:9: error: no previous prototype for 'WMT_read' [-Werror=missing-prototypes]
1834 | ssize_t WMT_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1865:14: error: no previous prototype for 'WMT_poll' [-Werror=missing-prototypes]
1865 | unsigned int WMT_poll(struct file *filp, poll_table *wait)
| ^~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1885:6: error: no previous prototype for 'WMT_unlocked_ioctl' [-Werror=missing-prototypes]
1885 | long WMT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function 'WMT_unlocked_ioctl':
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1985:11: error: variable 'u4Wait' set but not used [-Werror=unused-but-set-variable]
1985 | UINT32 u4Wait;
| ^~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2154:21: error: variable 'pTemp' set but not used [-Werror=unused-but-set-variable]
2154 | P_WMT_PATCH_INFO pTemp = NULL;
| ^~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2368:6: error: no previous prototype for 'wmt_dev_bgw_desense_init' [-Werror=missing-prototypes]
2368 | void wmt_dev_bgw_desense_init(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2373:6: error: no previous prototype for 'wmt_dev_bgw_desense_deinit' [-Werror=missing-prototypes]
2373 | void wmt_dev_bgw_desense_deinit(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2544:5: error: no previous prototype for 'mtk_wcn_soc_common_drv_init' [-Werror=missing-prototypes]
2544 | int mtk_wcn_soc_common_drv_init(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2550:6: error: no previous prototype for 'mtk_wcn_soc_common_drv_exit' [-Werror=missing-prototypes]
2550 | void mtk_wcn_soc_common_drv_exit(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1376:31: error: 'wmt_aee_fops' defined but not used [-Werror=unused-const-variable=]
1376 | static const struct proc_ops wmt_aee_fops = {
| ^~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1291:31: error: 'wmt_dbg_fops' defined but not used [-Werror=unused-const-variable=]
1291 | static const struct proc_ops wmt_dbg_fops = {
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:272:5: error: no previous prototype for 'hci_recv_fragment' [-Werror=missing-prototypes]
272 | int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count)
| ^~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:294:1: error: no previous prototype for 'hex_dump' [-Werror=missing-prototypes]
294 | hex_dump(char *prefix, char *p, int len)
| ^~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:457:5: error: no previous prototype for 'mtk_bt_hci_init' [-Werror=missing-prototypes]
457 | int mtk_bt_hci_init(void)
| ^~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:527:6: error: no previous prototype for 'BT_event_cb' [-Werror=missing-prototypes]
527 | VOID BT_event_cb(VOID)
| ^~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:540:14: error: no previous prototype for 'BT_poll' [-Werror=missing-prototypes]
540 | unsigned int BT_poll(struct file *filp, poll_table *wait)
| ^~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:566:9: error: no previous prototype for 'BT_write' [-Werror=missing-prototypes]
566 | ssize_t BT_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:620:9: error: no previous prototype for 'BT_read' [-Werror=missing-prototypes]
620 | ssize_t BT_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:681:6: error: no previous prototype for 'BT_unlocked_ioctl' [-Werror=missing-prototypes]
681 | long BT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:726:6: error: no previous prototype for 'BT_compat_ioctl' [-Werror=missing-prototypes]
726 | long BT_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/mtk_cfg80211_testmode_get_link_detection +2406 drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c
2404
2405 int
> 2406 mtk_cfg80211_testmode_get_link_detection(IN struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
2407 {
2408
2409 WLAN_STATUS rStatus = WLAN_STATUS_SUCCESS;
2410 INT_32 i4Status = -EINVAL;
2411 UINT_32 u4BufLen;
2412
2413 PARAM_802_11_STATISTICS_STRUCT_T rStatistics;
2414 struct sk_buff *skb;
2415
2416 ASSERT(wiphy);
2417 ASSERT(prGlueInfo);
2418
2419 skb = cfg80211_testmode_alloc_reply_skb(wiphy, sizeof(PARAM_GET_STA_STA_STATISTICS) + 1);
2420
2421 if (!skb) {
2422 DBGLOG(QM, TRACE, "%s allocate skb failed:%x\n", __func__, rStatus);
2423 return -ENOMEM;
2424 }
2425
2426 kalMemZero(&rStatistics, sizeof(rStatistics));
2427
2428 rStatus = kalIoctl(prGlueInfo,
2429 wlanoidQueryStatistics,
2430 &rStatistics, sizeof(rStatistics), TRUE, TRUE, TRUE, FALSE, &u4BufLen);
2431
2432 /*NLA_PUT_U8(skb, NL80211_TESTMODE_STA_STATISTICS_INVALID, 0);*/
2433 {
2434 unsigned char __tmp = 0;
2435
2436 if (unlikely(nla_put(skb, NL80211_TESTMODE_STA_STATISTICS_INVALID, sizeof(unsigned char), &__tmp) < 0))
2437 goto nla_put_failure;
2438 }
2439
2440 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_FAIL_CNT, rStatistics.rFailedCount.QuadPart);*/
2441 {
2442 u64 __tmp = rStatistics.rFailedCount.QuadPart;
2443
2444 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_FAIL_CNT,
2445 sizeof(u64), &__tmp) < 0))
2446 goto nla_put_failure;
2447 }
2448
2449 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_RETRY_CNT, rStatistics.rRetryCount.QuadPart);*/
2450 {
2451 u64 __tmp = rStatistics.rFailedCount.QuadPart;
2452
2453 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_RETRY_CNT,
2454 sizeof(u64), &__tmp) < 0))
2455 goto nla_put_failure;
2456 }
2457
2458 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_MULTI_RETRY_CNT, rStatistics.rMultipleRetryCount.QuadPart);*/
2459 {
2460 u64 __tmp = rStatistics.rMultipleRetryCount.QuadPart;
2461
2462 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_MULTI_RETRY_CNT,
2463 sizeof(u64), &__tmp) < 0))
2464 goto nla_put_failure;
2465 }
2466
2467 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_ACK_FAIL_CNT, rStatistics.rACKFailureCount.QuadPart);*/
2468 {
2469 u64 __tmp = rStatistics.rACKFailureCount.QuadPart;
2470
2471 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_ACK_FAIL_CNT,
2472 sizeof(u64), &__tmp) < 0))
2473 goto nla_put_failure;
2474 }
2475
2476 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_FCS_ERR_CNT, rStatistics.rFCSErrorCount.QuadPart);*/
2477 {
2478 u64 __tmp = rStatistics.rFCSErrorCount.QuadPart;
2479
2480 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_FCS_ERR_CNT,
2481 sizeof(u64), &__tmp) < 0))
2482 goto nla_put_failure;
2483 }
2484
2485
2486 i4Status = cfg80211_testmode_reply(skb);
2487 skb = NULL;
2488
2489 nla_put_failure:
2490 if (skb != NULL)
2491 kfree_skb(skb);
2492 return i4Status;
2493 }
2494
2495 int mtk_cfg80211_testmode_sw_cmd(IN struct wiphy *wiphy, IN void *data, IN int len)
2496 {
2497 P_GLUE_INFO_T prGlueInfo = NULL;
2498 P_NL80211_DRIVER_SW_CMD_PARAMS prParams = (P_NL80211_DRIVER_SW_CMD_PARAMS) NULL;
2499 WLAN_STATUS rstatus = WLAN_STATUS_SUCCESS;
2500 int fgIsValid = 0;
2501 UINT_32 u4SetInfoLen = 0;
2502
2503 ASSERT(wiphy);
2504
2505 prGlueInfo = (P_GLUE_INFO_T) wiphy_priv(wiphy);
2506
2507 DBGLOG(REQ, TRACE, "--> %s()\n", __func__);
2508
2509 if (data && len)
2510 prParams = (P_NL80211_DRIVER_SW_CMD_PARAMS) data;
2511
2512 if (prParams) {
2513 if (prParams->set == 1) {
2514 rstatus = kalIoctl(prGlueInfo,
2515 (PFN_OID_HANDLER_FUNC) wlanoidSetSwCtrlWrite,
2516 &prParams->adr, (UINT_32) 8, FALSE, FALSE, TRUE, FALSE, &u4SetInfoLen);
2517 }
2518 }
2519
2520 if (WLAN_STATUS_SUCCESS != rstatus)
2521 fgIsValid = -EFAULT;
2522
2523 return fgIsValid;
2524 }
2525
2526 #if CFG_SUPPORT_HOTSPOT_2_0
2527 int mtk_cfg80211_testmode_hs20_cmd(IN struct wiphy *wiphy, IN void *data, IN int len)
2528 {
2529 P_GLUE_INFO_T prGlueInfo = NULL;
2530 struct wpa_driver_hs20_data_s *prParams = NULL;
2531 WLAN_STATUS rstatus = WLAN_STATUS_SUCCESS;
2532 int fgIsValid = 0;
2533 UINT_32 u4SetInfoLen = 0;
2534
2535 ASSERT(wiphy);
2536
2537 prGlueInfo = (P_GLUE_INFO_T) wiphy_priv(wiphy);
2538
2539 DBGLOG(REQ, TRACE, "--> %s()\n", __func__);
2540
2541 if (data && len) {
2542 prParams = (struct wpa_driver_hs20_data_s *)data;
2543
2544 DBGLOG(REQ, TRACE, "[%s] Cmd Type (%d)\n", __func__, prParams->CmdType);
2545 }
2546
2547 if (prParams) {
2548 int i;
2549
2550 switch (prParams->CmdType) {
2551 case HS20_CMD_ID_SET_BSSID_POOL:
2552 DBGLOG(REQ, TRACE, "fgBssidPoolIsEnable=%d, ucNumBssidPool=%d\n",
2553 prParams->hs20_set_bssid_pool.fgBssidPoolIsEnable,
2554 prParams->hs20_set_bssid_pool.ucNumBssidPool);
2555 for (i = 0; i < prParams->hs20_set_bssid_pool.ucNumBssidPool; i++) {
2556 DBGLOG(REQ, TRACE, "[%d][ %pM ]\n", i,
2557 (prParams->hs20_set_bssid_pool.arBssidPool[i]));
2558 }
2559 rstatus = kalIoctl(prGlueInfo,
2560 (PFN_OID_HANDLER_FUNC) wlanoidSetHS20BssidPool,
2561 &prParams->hs20_set_bssid_pool,
2562 sizeof(struct param_hs20_set_bssid_pool),
2563 FALSE, FALSE, TRUE, FALSE, &u4SetInfoLen);
2564 break;
2565 default:
2566 DBGLOG(REQ, TRACE, "[%s] Unknown Cmd Type (%d)\n", __func__, prParams->CmdType);
2567 rstatus = WLAN_STATUS_FAILURE;
2568
2569 }
2570
2571 }
2572
2573 if (WLAN_STATUS_SUCCESS != rstatus)
2574 fgIsValid = -EFAULT;
2575
2576 return fgIsValid;
2577 }
2578
2579 #endif
2580 int
> 2581 mtk_cfg80211_testmode_set_poorlink_param(IN struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
2582 {
2583 int fgIsValid = 0;
2584 P_NL80211_DRIVER_POORLINK_PARAMS prParams = NULL;
2585
2586 ASSERT(wiphy);
2587 ASSERT(prGlueInfo);
2588
2589 if (data && len) {
2590 prParams = (P_NL80211_DRIVER_POORLINK_PARAMS) data;
2591 } else {
2592 DBGLOG(REQ, ERROR, "mtk_cfg80211_testmode_set_poorlink_param, data is NULL\n");
2593 return -EINVAL;
2594 }
2595 if (prParams->ucLinkSpeed)
2596 prGlueInfo->u4LinkspeedThreshold = prParams->ucLinkSpeed * 10;
2597 if (prParams->cRssi)
2598 prGlueInfo->i4RssiThreshold = prParams->cRssi;
2599 if (!prGlueInfo->fgPoorlinkValid)
2600 prGlueInfo->fgPoorlinkValid = 1;
2601 #if 0
2602 DBGLOG(REQ, TRACE, "poorlink set param valid(%d)rssi(%d)linkspeed(%d)\n",
2603 prGlueInfo->fgPoorlinkValid, prGlueInfo->i4RssiThreshold, prGlueInfo->u4LinkspeedThreshold);
2604 #endif
2605
2606 return fgIsValid;
2607
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[ti:ti-rt-linux-5.4.y 9540/12867] drivers/pci/controller/cadence/pci-j721e.c:149 j721e_pcie_v1_legacy_irq_handler() warn: inconsistent indenting
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 61dbfd640e8df38e9ea36bc0870f29ec397c82ff
commit: 54852266a780a8cf61fb8377e7c0e98a7bd91342 [9540/12867] PCI: j721e: Add PCIe support for j7200
config: i386-randconfig-m021-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/pci/controller/cadence/pci-j721e.c:149 j721e_pcie_v1_legacy_irq_handler() warn: inconsistent indenting
vim +149 drivers/pci/controller/cadence/pci-j721e.c
54852266a780a8c Kishon Vijay Abraham I 2020-07-08 133
54852266a780a8c Kishon Vijay Abraham I 2020-07-08 134 static void j721e_pcie_v1_legacy_irq_handler(struct irq_desc *desc)
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 135 {
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 136 int i;
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 137 u32 reg;
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 138 int virq;
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 139 struct j721e_pcie *pcie = irq_desc_get_handler_data(desc);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 140 struct irq_chip *chip = irq_desc_get_chip(desc);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 141
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 142 chained_irq_enter(chip, desc);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 143
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 144 for (i = 0; i < PCI_NUM_INTX; i++) {
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 145 reg = j721e_pcie_intd_readl(pcie, STATUS_REG_SYS_0);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 146 if (!(reg & INTx_EN(i)))
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 147 continue;
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 148
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 @149 virq = irq_find_mapping(pcie->legacy_irq_domain, 3 - i);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 150 generic_handle_irq(virq);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 151 j721e_pcie_intd_writel(pcie, STATUS_CLR_REG_SYS_0, INTx_EN(i));
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 152 j721e_pcie_intd_writel(pcie, EOI_REG, 3 - i);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 153 }
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 154
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 155 chained_irq_exit(chip, desc);
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 156 }
c577d6c429a54c2 Kishon Vijay Abraham I 2020-02-07 157
:::::: The code at line 149 was first introduced by commit
:::::: c577d6c429a54c2aa978e90f5cf5c2fb332e5e63 PCI: j721e: Add PCI legacy interrupt support for J721E
:::::: TO: Kishon Vijay Abraham I <kishon(a)ti.com>
:::::: CC: Sekhar Nori <nsekhar(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
arch/sh/kernel/dwarf.c:411:24: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
Hi Luc,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7b1b868e1d9156484ccce9bf11122c053de82617
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 4 months ago
config: sh-randconfig-s032-20201213 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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.3-179-ga00755aa-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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/sh/kernel/dwarf.c:248:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long *val @@
arch/sh/kernel/dwarf.c:248:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:248:17: sparse: got unsigned long *val
arch/sh/kernel/dwarf.c:347:18: sparse: sparse: symbol 'dwarf_lookup_fde' was not declared. Should it be static?
>> arch/sh/kernel/dwarf.c:411:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned char * @@
arch/sh/kernel/dwarf.c:411:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:411:24: sparse: got unsigned char *
>> arch/sh/kernel/dwarf.c:676:38: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long [assigned] addr @@
arch/sh/kernel/dwarf.c:676:38: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:676:38: sparse: got unsigned long [assigned] addr
arch/sh/kernel/dwarf.c:708:30: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long [assigned] addr @@
arch/sh/kernel/dwarf.c:708:30: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:708:30: sparse: got unsigned long [assigned] addr
arch/sh/kernel/dwarf.c:775:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void *[assigned] p @@
arch/sh/kernel/dwarf.c:775:43: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:775:43: sparse: got void *[assigned] p
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
--
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
--
>> arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: got unsigned int
--
fs/orangefs/file.c:118:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected int open_for_write @@ got restricted fmode_t @@
fs/orangefs/file.c:118:32: sparse: expected int open_for_write
fs/orangefs/file.c:118:32: sparse: got restricted fmode_t
fs/orangefs/file.c:119:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected int open_for_read @@ got restricted fmode_t @@
fs/orangefs/file.c:119:31: sparse: expected int open_for_read
fs/orangefs/file.c:119:31: sparse: got restricted fmode_t
fs/orangefs/file.c:424:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/orangefs/file.c:424:21: sparse: expected int const *__gu_addr
fs/orangefs/file.c:424:21: sparse: got int [noderef] __user *
>> fs/orangefs/file.c:424:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/orangefs/file.c:424:21: sparse: expected void const volatile [noderef] __user *ptr
fs/orangefs/file.c:424:21: sparse: got int const *__gu_addr
--
fs/ubifs/ioctl.c:162:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/ubifs/ioctl.c:162:21: sparse: expected int const *__gu_addr
fs/ubifs/ioctl.c:162:21: sparse: got int [noderef] __user *
>> fs/ubifs/ioctl.c:162:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/ubifs/ioctl.c:162:21: sparse: expected void const volatile [noderef] __user *ptr
fs/ubifs/ioctl.c:162:21: sparse: got int const *__gu_addr
--
ipc/syscall.c:48:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long const *__gu_addr @@ got unsigned long [noderef] __user * @@
ipc/syscall.c:48:21: sparse: expected unsigned long const *__gu_addr
ipc/syscall.c:48:21: sparse: got unsigned long [noderef] __user *
>> ipc/syscall.c:48:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long const *__gu_addr @@
ipc/syscall.c:48:21: sparse: expected void const volatile [noderef] __user *ptr
ipc/syscall.c:48:21: sparse: got unsigned long const *__gu_addr
--
drivers/spi/spidev.c:401:34: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:401:34: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:401:34: sparse: got unsigned char [noderef] [usertype] __user *
>> drivers/spi/spidev.c:401:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:401:34: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:401:34: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:403:34: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/spi/spidev.c:403:34: sparse: expected unsigned int const *__gu_addr
drivers/spi/spidev.c:403:34: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/spi/spidev.c:403:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/spi/spidev.c:403:34: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:403:34: sparse: got unsigned int const *__gu_addr
drivers/spi/spidev.c:427:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:427:26: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:427:26: sparse: got unsigned char [noderef] [usertype] __user *
drivers/spi/spidev.c:427:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:427:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:427:26: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:444:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:444:26: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:444:26: sparse: got unsigned char [noderef] [usertype] __user *
drivers/spi/spidev.c:444:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:444:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:444:26: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:457:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/spi/spidev.c:457:26: sparse: expected unsigned int const *__gu_addr
drivers/spi/spidev.c:457:26: sparse: got unsigned int [noderef] [usertype] __user *
drivers/spi/spidev.c:457:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/spi/spidev.c:457:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:457:26: sparse: got unsigned int const *__gu_addr
--
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:937:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:937:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:938:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:938:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] __user * @@
drivers/usb/core/devio.c:953:21: sparse: expected unsigned char const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char [noderef] __user *
>> drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/usb/core/devio.c:953:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1290:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1290:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1309:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1309:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/usb/core/devio.c:1441:13: sparse: expected int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: got int [noderef] __user *
drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/usb/core/devio.c:1441:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1441:13: sparse: got int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2189:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2189:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2199:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2199:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2315:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2315:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2328:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2328:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int const *__gu_addr
--
drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *argp @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected unsigned int const *__gu_addr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int [noderef] [usertype] __user *argp
>> drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int const *__gu_addr
--
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected char const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int [noderef] __user *
>> drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int [noderef] __user *
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int const *__gu_addr
--
drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected char const *__gu_addr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int [noderef] __user *p
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int const *__gu_addr
--
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/cpu-sh2a/cpu/watchdog.h, arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
vim +411 arch/sh/kernel/dwarf.c
bd353861c735b22 Matt Fleming 2009-08-14 381
bd353861c735b22 Matt Fleming 2009-08-14 382 /**
bd353861c735b22 Matt Fleming 2009-08-14 383 * dwarf_cfa_execute_insns - execute instructions to calculate a CFA
bd353861c735b22 Matt Fleming 2009-08-14 384 * @insn_start: address of the first instruction
bd353861c735b22 Matt Fleming 2009-08-14 385 * @insn_end: address of the last instruction
bd353861c735b22 Matt Fleming 2009-08-14 386 * @cie: the CIE for this function
bd353861c735b22 Matt Fleming 2009-08-14 387 * @fde: the FDE for this function
bd353861c735b22 Matt Fleming 2009-08-14 388 * @frame: the instructions calculate the CFA for this frame
bd353861c735b22 Matt Fleming 2009-08-14 389 * @pc: the program counter of the address we're interested in
bd353861c735b22 Matt Fleming 2009-08-14 390 *
bd353861c735b22 Matt Fleming 2009-08-14 391 * Execute the Call Frame instruction sequence starting at
bd353861c735b22 Matt Fleming 2009-08-14 392 * @insn_start and ending at @insn_end. The instructions describe
bd353861c735b22 Matt Fleming 2009-08-14 393 * how to calculate the Canonical Frame Address of a stackframe.
bd353861c735b22 Matt Fleming 2009-08-14 394 * Store the results in @frame.
bd353861c735b22 Matt Fleming 2009-08-14 395 */
bd353861c735b22 Matt Fleming 2009-08-14 396 static int dwarf_cfa_execute_insns(unsigned char *insn_start,
bd353861c735b22 Matt Fleming 2009-08-14 397 unsigned char *insn_end,
bd353861c735b22 Matt Fleming 2009-08-14 398 struct dwarf_cie *cie,
bd353861c735b22 Matt Fleming 2009-08-14 399 struct dwarf_fde *fde,
bd353861c735b22 Matt Fleming 2009-08-14 400 struct dwarf_frame *frame,
b955873bf530ee4 Matt Fleming 2009-08-15 401 unsigned long pc)
bd353861c735b22 Matt Fleming 2009-08-14 402 {
bd353861c735b22 Matt Fleming 2009-08-14 403 unsigned char insn;
bd353861c735b22 Matt Fleming 2009-08-14 404 unsigned char *current_insn;
bd353861c735b22 Matt Fleming 2009-08-14 405 unsigned int count, delta, reg, expr_len, offset;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 406 struct dwarf_reg *regp;
bd353861c735b22 Matt Fleming 2009-08-14 407
bd353861c735b22 Matt Fleming 2009-08-14 408 current_insn = insn_start;
bd353861c735b22 Matt Fleming 2009-08-14 409
b955873bf530ee4 Matt Fleming 2009-08-15 410 while (current_insn < insn_end && frame->pc <= pc) {
bd353861c735b22 Matt Fleming 2009-08-14 @411 insn = __raw_readb(current_insn++);
bd353861c735b22 Matt Fleming 2009-08-14 412
bd353861c735b22 Matt Fleming 2009-08-14 413 /*
bd353861c735b22 Matt Fleming 2009-08-14 414 * Firstly, handle the opcodes that embed their operands
bd353861c735b22 Matt Fleming 2009-08-14 415 * in the instructions.
bd353861c735b22 Matt Fleming 2009-08-14 416 */
bd353861c735b22 Matt Fleming 2009-08-14 417 switch (DW_CFA_opcode(insn)) {
bd353861c735b22 Matt Fleming 2009-08-14 418 case DW_CFA_advance_loc:
bd353861c735b22 Matt Fleming 2009-08-14 419 delta = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 420 delta *= cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 421 frame->pc += delta;
bd353861c735b22 Matt Fleming 2009-08-14 422 continue;
bd353861c735b22 Matt Fleming 2009-08-14 423 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 424 case DW_CFA_offset:
bd353861c735b22 Matt Fleming 2009-08-14 425 reg = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 426 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 427 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 428 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 429 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 430 regp->addr = offset;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 431 regp->flags |= DWARF_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 432 continue;
bd353861c735b22 Matt Fleming 2009-08-14 433 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 434 case DW_CFA_restore:
bd353861c735b22 Matt Fleming 2009-08-14 435 reg = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 436 continue;
bd353861c735b22 Matt Fleming 2009-08-14 437 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 438 }
bd353861c735b22 Matt Fleming 2009-08-14 439
bd353861c735b22 Matt Fleming 2009-08-14 440 /*
bd353861c735b22 Matt Fleming 2009-08-14 441 * Secondly, handle the opcodes that don't embed their
bd353861c735b22 Matt Fleming 2009-08-14 442 * operands in the instruction.
bd353861c735b22 Matt Fleming 2009-08-14 443 */
bd353861c735b22 Matt Fleming 2009-08-14 444 switch (insn) {
bd353861c735b22 Matt Fleming 2009-08-14 445 case DW_CFA_nop:
bd353861c735b22 Matt Fleming 2009-08-14 446 continue;
bd353861c735b22 Matt Fleming 2009-08-14 447 case DW_CFA_advance_loc1:
bd353861c735b22 Matt Fleming 2009-08-14 448 delta = *current_insn++;
bd353861c735b22 Matt Fleming 2009-08-14 449 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 450 break;
bd353861c735b22 Matt Fleming 2009-08-14 451 case DW_CFA_advance_loc2:
3497447f15485b4 Paul Mundt 2009-08-14 452 delta = get_unaligned((u16 *)current_insn);
bd353861c735b22 Matt Fleming 2009-08-14 453 current_insn += 2;
bd353861c735b22 Matt Fleming 2009-08-14 454 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 455 break;
bd353861c735b22 Matt Fleming 2009-08-14 456 case DW_CFA_advance_loc4:
3497447f15485b4 Paul Mundt 2009-08-14 457 delta = get_unaligned((u32 *)current_insn);
bd353861c735b22 Matt Fleming 2009-08-14 458 current_insn += 4;
bd353861c735b22 Matt Fleming 2009-08-14 459 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 460 break;
bd353861c735b22 Matt Fleming 2009-08-14 461 case DW_CFA_offset_extended:
bd353861c735b22 Matt Fleming 2009-08-14 462 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 463 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 464 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 465 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 466 offset *= cie->data_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 467 break;
bd353861c735b22 Matt Fleming 2009-08-14 468 case DW_CFA_restore_extended:
bd353861c735b22 Matt Fleming 2009-08-14 469 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 470 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 471 break;
bd353861c735b22 Matt Fleming 2009-08-14 472 case DW_CFA_undefined:
bd353861c735b22 Matt Fleming 2009-08-14 473 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 474 current_insn += count;
5580e9044df9c0e Matt Fleming 2009-08-20 475 regp = dwarf_frame_alloc_reg(frame, reg);
5580e9044df9c0e Matt Fleming 2009-08-20 476 regp->flags |= DWARF_UNDEFINED;
bd353861c735b22 Matt Fleming 2009-08-14 477 break;
bd353861c735b22 Matt Fleming 2009-08-14 478 case DW_CFA_def_cfa:
bd353861c735b22 Matt Fleming 2009-08-14 479 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 480 &frame->cfa_register);
bd353861c735b22 Matt Fleming 2009-08-14 481 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 482 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 483 &frame->cfa_offset);
bd353861c735b22 Matt Fleming 2009-08-14 484 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 485
bd353861c735b22 Matt Fleming 2009-08-14 486 frame->flags |= DWARF_FRAME_CFA_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 487 break;
bd353861c735b22 Matt Fleming 2009-08-14 488 case DW_CFA_def_cfa_register:
bd353861c735b22 Matt Fleming 2009-08-14 489 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 490 &frame->cfa_register);
bd353861c735b22 Matt Fleming 2009-08-14 491 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 492 frame->flags |= DWARF_FRAME_CFA_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 493 break;
bd353861c735b22 Matt Fleming 2009-08-14 494 case DW_CFA_def_cfa_offset:
bd353861c735b22 Matt Fleming 2009-08-14 495 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 496 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 497 frame->cfa_offset = offset;
bd353861c735b22 Matt Fleming 2009-08-14 498 break;
bd353861c735b22 Matt Fleming 2009-08-14 499 case DW_CFA_def_cfa_expression:
bd353861c735b22 Matt Fleming 2009-08-14 500 count = dwarf_read_uleb128(current_insn, &expr_len);
bd353861c735b22 Matt Fleming 2009-08-14 501 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 502
bd353861c735b22 Matt Fleming 2009-08-14 503 frame->cfa_expr = current_insn;
bd353861c735b22 Matt Fleming 2009-08-14 504 frame->cfa_expr_len = expr_len;
bd353861c735b22 Matt Fleming 2009-08-14 505 current_insn += expr_len;
bd353861c735b22 Matt Fleming 2009-08-14 506
bd353861c735b22 Matt Fleming 2009-08-14 507 frame->flags |= DWARF_FRAME_CFA_REG_EXP;
bd353861c735b22 Matt Fleming 2009-08-14 508 break;
bd353861c735b22 Matt Fleming 2009-08-14 509 case DW_CFA_offset_extended_sf:
bd353861c735b22 Matt Fleming 2009-08-14 510 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 511 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 512 count = dwarf_read_leb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 513 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 514 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 515 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 516 regp->flags |= DWARF_REG_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 517 regp->addr = offset;
bd353861c735b22 Matt Fleming 2009-08-14 518 break;
bd353861c735b22 Matt Fleming 2009-08-14 519 case DW_CFA_val_offset:
bd353861c735b22 Matt Fleming 2009-08-14 520 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 521 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 522 count = dwarf_read_leb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 523 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 524 regp = dwarf_frame_alloc_reg(frame, reg);
97efbbd5886e27b Matt Fleming 2009-08-16 525 regp->flags |= DWARF_VAL_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 526 regp->addr = offset;
bd353861c735b22 Matt Fleming 2009-08-14 527 break;
cd7246f0e2747bd Matt Fleming 2009-08-16 528 case DW_CFA_GNU_args_size:
cd7246f0e2747bd Matt Fleming 2009-08-16 529 count = dwarf_read_uleb128(current_insn, &offset);
cd7246f0e2747bd Matt Fleming 2009-08-16 530 current_insn += count;
cd7246f0e2747bd Matt Fleming 2009-08-16 531 break;
cd7246f0e2747bd Matt Fleming 2009-08-16 532 case DW_CFA_GNU_negative_offset_extended:
cd7246f0e2747bd Matt Fleming 2009-08-16 533 count = dwarf_read_uleb128(current_insn, ®);
cd7246f0e2747bd Matt Fleming 2009-08-16 534 current_insn += count;
cd7246f0e2747bd Matt Fleming 2009-08-16 535 count = dwarf_read_uleb128(current_insn, &offset);
cd7246f0e2747bd Matt Fleming 2009-08-16 536 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 537
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 538 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 539 regp->flags |= DWARF_REG_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 540 regp->addr = -offset;
cd7246f0e2747bd Matt Fleming 2009-08-16 541 break;
bd353861c735b22 Matt Fleming 2009-08-14 542 default:
bd353861c735b22 Matt Fleming 2009-08-14 543 pr_debug("unhandled DWARF instruction 0x%x\n", insn);
b344e24a8e8ceda Matt Fleming 2009-08-16 544 UNWINDER_BUG();
bd353861c735b22 Matt Fleming 2009-08-14 545 break;
bd353861c735b22 Matt Fleming 2009-08-14 546 }
bd353861c735b22 Matt Fleming 2009-08-14 547 }
bd353861c735b22 Matt Fleming 2009-08-14 548
bd353861c735b22 Matt Fleming 2009-08-14 549 return 0;
bd353861c735b22 Matt Fleming 2009-08-14 550 }
bd353861c735b22 Matt Fleming 2009-08-14 551
:::::: The code at line 411 was first introduced by commit
:::::: bd353861c735b2265c9d8b2559960c693e7c68ab sh: dwarf unwinder support.
:::::: TO: Matt Fleming <matt(a)console-pimps.org>
:::::: CC: Paul Mundt <lethal(a)linux-sh.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[linux-next:master 6953/13205] drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3cc2bd440f2171f093b3a8480a4b54d8c270ed38
commit: 0ab785c894e618587e83bb67e8a8e96649868ad1 [6953/13205] dmaengine: imx-dma: Remove unused .id_table
config: arm64-randconfig-r012-20201211 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5ff35356f1af2bb92785b38c657463924d9ec386)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# 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 0ab785c894e618587e83bb67e8a8e96649868ad1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +1048 drivers/dma/imx-dma.c
1035
1036 static int __init imxdma_probe(struct platform_device *pdev)
1037 {
1038 struct imxdma_engine *imxdma;
1039 struct resource *res;
1040 int ret, i;
1041 int irq, irq_err;
1042
1043 imxdma = devm_kzalloc(&pdev->dev, sizeof(*imxdma), GFP_KERNEL);
1044 if (!imxdma)
1045 return -ENOMEM;
1046
1047 imxdma->dev = &pdev->dev;
> 1048 imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev);
1049
1050 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1051 imxdma->base = devm_ioremap_resource(&pdev->dev, res);
1052 if (IS_ERR(imxdma->base))
1053 return PTR_ERR(imxdma->base);
1054
1055 irq = platform_get_irq(pdev, 0);
1056 if (irq < 0)
1057 return irq;
1058
1059 imxdma->dma_ipg = devm_clk_get(&pdev->dev, "ipg");
1060 if (IS_ERR(imxdma->dma_ipg))
1061 return PTR_ERR(imxdma->dma_ipg);
1062
1063 imxdma->dma_ahb = devm_clk_get(&pdev->dev, "ahb");
1064 if (IS_ERR(imxdma->dma_ahb))
1065 return PTR_ERR(imxdma->dma_ahb);
1066
1067 ret = clk_prepare_enable(imxdma->dma_ipg);
1068 if (ret)
1069 return ret;
1070 ret = clk_prepare_enable(imxdma->dma_ahb);
1071 if (ret)
1072 goto disable_dma_ipg_clk;
1073
1074 /* reset DMA module */
1075 imx_dmav1_writel(imxdma, DCR_DRST, DMA_DCR);
1076
1077 if (is_imx1_dma(imxdma)) {
1078 ret = devm_request_irq(&pdev->dev, irq,
1079 dma_irq_handler, 0, "DMA", imxdma);
1080 if (ret) {
1081 dev_warn(imxdma->dev, "Can't register IRQ for DMA\n");
1082 goto disable_dma_ahb_clk;
1083 }
1084 imxdma->irq = irq;
1085
1086 irq_err = platform_get_irq(pdev, 1);
1087 if (irq_err < 0) {
1088 ret = irq_err;
1089 goto disable_dma_ahb_clk;
1090 }
1091
1092 ret = devm_request_irq(&pdev->dev, irq_err,
1093 imxdma_err_handler, 0, "DMA", imxdma);
1094 if (ret) {
1095 dev_warn(imxdma->dev, "Can't register ERRIRQ for DMA\n");
1096 goto disable_dma_ahb_clk;
1097 }
1098 imxdma->irq_err = irq_err;
1099 }
1100
1101 /* enable DMA module */
1102 imx_dmav1_writel(imxdma, DCR_DEN, DMA_DCR);
1103
1104 /* clear all interrupts */
1105 imx_dmav1_writel(imxdma, (1 << IMX_DMA_CHANNELS) - 1, DMA_DISR);
1106
1107 /* disable interrupts */
1108 imx_dmav1_writel(imxdma, (1 << IMX_DMA_CHANNELS) - 1, DMA_DIMR);
1109
1110 INIT_LIST_HEAD(&imxdma->dma_device.channels);
1111
1112 dma_cap_set(DMA_SLAVE, imxdma->dma_device.cap_mask);
1113 dma_cap_set(DMA_CYCLIC, imxdma->dma_device.cap_mask);
1114 dma_cap_set(DMA_MEMCPY, imxdma->dma_device.cap_mask);
1115 dma_cap_set(DMA_INTERLEAVE, imxdma->dma_device.cap_mask);
1116
1117 /* Initialize 2D global parameters */
1118 for (i = 0; i < IMX_DMA_2D_SLOTS; i++)
1119 imxdma->slots_2d[i].count = 0;
1120
1121 spin_lock_init(&imxdma->lock);
1122
1123 /* Initialize channel parameters */
1124 for (i = 0; i < IMX_DMA_CHANNELS; i++) {
1125 struct imxdma_channel *imxdmac = &imxdma->channel[i];
1126
1127 if (!is_imx1_dma(imxdma)) {
1128 ret = devm_request_irq(&pdev->dev, irq + i,
1129 dma_irq_handler, 0, "DMA", imxdma);
1130 if (ret) {
1131 dev_warn(imxdma->dev, "Can't register IRQ %d "
1132 "for DMA channel %d\n",
1133 irq + i, i);
1134 goto disable_dma_ahb_clk;
1135 }
1136
1137 imxdmac->irq = irq + i;
1138 timer_setup(&imxdmac->watchdog, imxdma_watchdog, 0);
1139 }
1140
1141 imxdmac->imxdma = imxdma;
1142
1143 INIT_LIST_HEAD(&imxdmac->ld_queue);
1144 INIT_LIST_HEAD(&imxdmac->ld_free);
1145 INIT_LIST_HEAD(&imxdmac->ld_active);
1146
1147 tasklet_setup(&imxdmac->dma_tasklet, imxdma_tasklet);
1148 imxdmac->chan.device = &imxdma->dma_device;
1149 dma_cookie_init(&imxdmac->chan);
1150 imxdmac->channel = i;
1151
1152 /* Add the channel to the DMAC list */
1153 list_add_tail(&imxdmac->chan.device_node,
1154 &imxdma->dma_device.channels);
1155 }
1156
1157 imxdma->dma_device.dev = &pdev->dev;
1158
1159 imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources;
1160 imxdma->dma_device.device_free_chan_resources = imxdma_free_chan_resources;
1161 imxdma->dma_device.device_tx_status = imxdma_tx_status;
1162 imxdma->dma_device.device_prep_slave_sg = imxdma_prep_slave_sg;
1163 imxdma->dma_device.device_prep_dma_cyclic = imxdma_prep_dma_cyclic;
1164 imxdma->dma_device.device_prep_dma_memcpy = imxdma_prep_dma_memcpy;
1165 imxdma->dma_device.device_prep_interleaved_dma = imxdma_prep_dma_interleaved;
1166 imxdma->dma_device.device_config = imxdma_config;
1167 imxdma->dma_device.device_terminate_all = imxdma_terminate_all;
1168 imxdma->dma_device.device_issue_pending = imxdma_issue_pending;
1169
1170 platform_set_drvdata(pdev, imxdma);
1171
1172 imxdma->dma_device.copy_align = DMAENGINE_ALIGN_4_BYTES;
1173 dma_set_max_seg_size(imxdma->dma_device.dev, 0xffffff);
1174
1175 ret = dma_async_device_register(&imxdma->dma_device);
1176 if (ret) {
1177 dev_err(&pdev->dev, "unable to register\n");
1178 goto disable_dma_ahb_clk;
1179 }
1180
1181 if (pdev->dev.of_node) {
1182 ret = of_dma_controller_register(pdev->dev.of_node,
1183 imxdma_xlate, imxdma);
1184 if (ret) {
1185 dev_err(&pdev->dev, "unable to register of_dma_controller\n");
1186 goto err_of_dma_controller;
1187 }
1188 }
1189
1190 return 0;
1191
1192 err_of_dma_controller:
1193 dma_async_device_unregister(&imxdma->dma_device);
1194 disable_dma_ahb_clk:
1195 clk_disable_unprepare(imxdma->dma_ahb);
1196 disable_dma_ipg_clk:
1197 clk_disable_unprepare(imxdma->dma_ipg);
1198 return ret;
1199 }
1200
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[frank-w-bpi-r2-4.14:5.10-rc 22/24] drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2544:5: error: no previous prototype for 'mtk_wcn_soc_common_drv_init'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.10-rc
head: 9cab5c0a19ff709f07113ec5bd8e8cedbfdf6b08
commit: f43ce62478a0f245f0fcc53c073b54c31786f15e [22/24] mt6625l: add wifi-driver from 5.9
config: arm-randconfig-r013-20201213 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://github.com/frank-w/BPI-R2-4.14/commit/f43ce62478a0f245f0fcc53c073...
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.10-rc
git checkout f43ce62478a0f245f0fcc53c073b54c31786f15e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.c:75:9: error: no previous prototype for 'wmt_detect_write' [-Werror=missing-prototypes]
75 | ssize_t wmt_detect_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect_pwr.c:51:5: error: no previous prototype for '_wmt_detect_output_low' [-Werror=missing-prototypes]
51 | int _wmt_detect_output_low(unsigned int id)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect_pwr.c:63:5: error: no previous prototype for '_wmt_detect_output_high' [-Werror=missing-prototypes]
63 | int _wmt_detect_output_high(unsigned int id)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect_pwr.c:75:5: error: no previous prototype for '_wmt_detect_read_gpio_input' [-Werror=missing-prototypes]
75 | int _wmt_detect_read_gpio_input(unsigned int id)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendCommand':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2004:14: error: variable 'prTxCtrl' set but not used [-Werror=unused-but-set-variable]
2004 | P_TX_CTRL_T prTxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendNicPowerCtrlCmd':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2575:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
2575 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanProcessQueuedSwRfb':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3270:14: error: variable 'prRxCtrl' set but not used [-Werror=unused-but-set-variable]
3270 | P_RX_CTRL_T prRxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3269:14: error: variable 'prTxCtrl' set but not used [-Werror=unused-but-set-variable]
3269 | P_TX_CTRL_T prTxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:4118:13: error: no previous prototype for 'wlanQueryCompileFlag' [-Werror=missing-prototypes]
4118 | WLAN_STATUS wlanQueryCompileFlag(IN P_ADAPTER_T prAdapter, IN UINT_32 u4QueryID, OUT PUINT_32 pu4CompilerFlag)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5431:1: error: no previous prototype for 'wlanoidQueryACSChannelList' [-Werror=missing-prototypes]
5431 | wlanoidQueryACSChannelList(IN P_ADAPTER_T prAdapter,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5738:8: error: no previous prototype for 'wlanCfgFindNextToken' [-Werror=missing-prototypes]
5738 | INT_32 wlanCfgFindNextToken(struct WLAN_CFG_PARSE_STATE_S *state)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5897:1: error: no previous prototype for 'wlanCfgParseAddEntry' [-Werror=missing-prototypes]
5897 | wlanCfgParseAddEntry(IN P_ADAPTER_T prAdapter,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5954:13: error: no previous prototype for 'wlanCfgParse' [-Werror=missing-prototypes]
5954 | WLAN_STATUS wlanCfgParse(IN P_ADAPTER_T prAdapter, PUINT_8 pucConfigBuf, UINT_32 u4ConfigBufLen)
| ^~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidQueryBssidList':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1384:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
1384 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetBssid':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1704:9: error: variable 'i4Idx' set but not used [-Werror=unused-but-set-variable]
1704 | INT_32 i4Idx = -1;
| ^~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetSsid':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1963:9: error: variable 'i4Idx' set but not used [-Werror=unused-but-set-variable]
1963 | INT_32 i4Idx = -1, i4MaxRSSI = INT_MIN;
| ^~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetInfrastructureMode':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2218:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
2218 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetAuthMode':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2388:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
2388 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetEncryptionStatus':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:3496:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
3496 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetSwCtrlWrite':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:5428:16: error: variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
5428 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetWapiKey':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:8180:10: error: variable 'pc' set but not used [-Werror=unused-but-set-variable]
8180 | PUINT_8 pc;
| ^~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetGSCNAction':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:10356:16: error: variable 'prScanInfo' set but not used [-Werror=unused-but-set-variable]
10356 | P_SCAN_INFO_T prScanInfo;
| ^~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1061:
At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1061:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowCmdReadRSSI':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:997:18: error: variable 'prBowReadRSSI' set but not used [-Werror=unused-but-set-variable]
997 | P_BOW_READ_RSSI prBowReadRSSI;
| ^~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowCmdReadLinkQuality':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1029:26: error: variable 'prBowReadLinkQuality' set but not used [-Werror=unused-but-set-variable]
1029 | P_BOW_READ_LINK_QUALITY prBowReadLinkQuality;
| ^~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'wlanbowCmdEventLinkDisconnected':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1439:41: error: cast between incompatible function types from 'VOID (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, ENUM_TX_RESULT_CODE_T)' {aka 'void (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)'} to 'WLAN_STATUS (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, ENUM_TX_RESULT_CODE_T)' {aka 'unsigned int (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)'} [-Werror=cast-function-type]
1439 | REASON_CODE_DEAUTH_LEAVING_BSS, (PFN_TX_DONE_HANDLER) bowDisconnectLink);
| ^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'wlanbowCmdEventSetSetupConnection':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1492:19: error: variable 'prBowFsmInfo' set but not used [-Werror=unused-but-set-variable]
1492 | P_BOW_FSM_INFO_T prBowFsmInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowStopping':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1650:15: error: variable 'prBowBssInfo' set but not used [-Werror=unused-but-set-variable]
1650 | P_BSS_INFO_T prBowBssInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1649:19: error: variable 'prBowFsmInfo' set but not used [-Werror=unused-but-set-variable]
1649 | P_BOW_FSM_INFO_T prBowFsmInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowValidateProbeReq':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1953:19: error: variable 'prBowFsmInfo' set but not used [-Werror=unused-but-set-variable]
1953 | P_BOW_FSM_INFO_T prBowFsmInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowResponderScan':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2051:15: error: variable 'prBssInfo' set but not used [-Werror=unused-but-set-variable]
2051 | P_BSS_INFO_T prBssInfo;
| ^~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowFsmRunEventJoinComplete':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2356:15: error: variable 'prBssInfo' set but not used [-Werror=unused-but-set-variable]
2356 | P_BSS_INFO_T prBssInfo;
| ^~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventAAAComplete':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2617:19: error: variable 'prBowFsmInfo' set but not used [-Werror=unused-but-set-variable]
2617 | P_BOW_FSM_INFO_T prBowFsmInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventRxDeAuth':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2656:15: error: variable 'prBowBssInfo' set but not used [-Werror=unused-but-set-variable]
2656 | P_BSS_INFO_T prBowBssInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventChGrant':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2971:15: error: variable 'prBowBssInfo' set but not used [-Werror=unused-but-set-variable]
2971 | P_BSS_INFO_T prBowBssInfo;
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowGetBowTableContent':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:3266:100: error: parameter 'prBowTable' set but not used [-Werror=unused-but-set-parameter]
3266 | BOOLEAN bowGetBowTableContent(IN P_ADAPTER_T prAdapter, IN UINT_8 ucBowTableIdx, OUT P_BOW_TABLE_T prBowTable)
| ~~~~~~~~~~~~~~^~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:319:
At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:319:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
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: #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
570 | #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
| ^~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c: In function 'wlanoidSetRemoveP2PKey':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:487:3: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
487 | ; /* return WLAN_STATUS_NOT_ACCEPTED; */
| ^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c: At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:529:1: error: no previous prototype for 'wlanoidSetP2pNetworkAddress' [-Werror=missing-prototypes]
529 | wlanoidSetP2pNetworkAddress(IN P_ADAPTER_T prAdapter,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c: In function 'wlanoidSetP2pSupplicantVersion':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:1527:9: error: variable 'ucVersionNum' set but not used [-Werror=unused-but-set-variable]
1527 | UINT_8 ucVersionNum;
| ^~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:217:
At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:217:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:1213:6: error: no previous prototype for 'nicHifInit' [-Werror=missing-prototypes]
1213 | VOID nicHifInit(IN P_ADAPTER_T prAdapter)
| ^~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:1316:6: error: no previous prototype for 'nicProcessFwOwnBackInterrupt' [-Werror=missing-prototypes]
1316 | VOID nicProcessFwOwnBackInterrupt(IN P_ADAPTER_T prAdapter)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:2611:13: error: no previous prototype for 'nicSetAutoTxPowerControl' [-Werror=missing-prototypes]
2611 | WLAN_STATUS nicSetAutoTxPowerControl(IN P_ADAPTER_T prAdapter, IN P_CMD_TX_PWR_T prTxPwrParam)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:637:
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error: 'lstats_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: error: 'rtt_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: error: 'gscan_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: error: 'wifi_vendor_test_policy' defined but not used [-Werror=unused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:637:
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error: 'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error: 'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
..
vim +/mtk_wcn_soc_common_drv_init +2544 drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c
2367
> 2368 void wmt_dev_bgw_desense_init(VOID)
2369 {
2370 bgw_init_socket();
2371 }
2372
> 2373 void wmt_dev_bgw_desense_deinit(VOID)
2374 {
2375 bgw_destroy_netlink_kernel();
2376 }
2377
2378 void wmt_dev_send_cmd_to_daemon(UINT32 cmd)
2379 {
2380 send_command_to_daemon(cmd);
2381 }
2382
2383 static int WMT_init(void)
2384 {
2385 dev_t devID = MKDEV(gWmtMajor, 0);
2386 INT32 cdevErr = -1;
2387 INT32 ret = -1;
2388
2389 WMT_INFO_FUNC("WMT Version= %s DATE=%s\n", MTK_WMT_VERSION, MTK_WMT_DATE);
2390 /* Prepare a UINT8 device */
2391 /*static allocate chrdev */
2392 gWmtInitDone = 0;
2393 init_waitqueue_head((wait_queue_head_t *) &gWmtInitWq);
2394 stp_drv_init();
2395
2396 ret = register_chrdev_region(devID, WMT_DEV_NUM, WMT_DRIVER_NAME);
2397 if (ret) {
2398 WMT_ERR_FUNC("fail to register chrdev\n");
2399 return ret;
2400 }
2401 cdev_init(&gWmtCdev, &gWmtFops);
2402 gWmtCdev.owner = THIS_MODULE;
2403 cdevErr = cdev_add(&gWmtCdev, devID, WMT_DEV_NUM);
2404 if (cdevErr) {
2405 WMT_ERR_FUNC("cdev_add() fails (%d)\n", cdevErr);
2406 goto error;
2407 }
2408 WMT_INFO_FUNC("driver(major %d) installed\n", gWmtMajor);
2409 #if WMT_CREATE_NODE_DYNAMIC
2410 wmt_class = class_create(THIS_MODULE, "stpwmt");
2411 if (IS_ERR(wmt_class))
2412 goto error;
2413 wmt_dev = device_create(wmt_class, NULL, devID, NULL, "stpwmt");
2414 if (IS_ERR(wmt_dev))
2415 goto error;
2416 #endif
2417
2418 #if 0
2419 pWmtDevCtx = wmt_drv_create();
2420 if (!pWmtDevCtx) {
2421 WMT_ERR_FUNC("wmt_drv_create() fails\n");
2422 goto error;
2423 }
2424 ret = wmt_drv_init(pWmtDevCtx);
2425 if (ret) {
2426 WMT_ERR_FUNC("wmt_drv_init() fails (%d)\n", ret);
2427 goto error;
2428 }
2429 WMT_INFO_FUNC("stp_btmcb_reg\n");
2430 wmt_cdev_btmcb_reg();
2431 ret = wmt_drv_start(pWmtDevCtx);
2432 if (ret) {
2433 WMT_ERR_FUNC("wmt_drv_start() fails (%d)\n", ret);
2434 goto error;
2435 }
2436 #endif
2437 ret = wmt_lib_init();
2438 if (ret) {
2439 WMT_ERR_FUNC("wmt_lib_init() fails (%d)\n", ret);
2440 goto error;
2441 }
2442 #if CFG_WMT_DBG_SUPPORT
2443 wmt_dev_dbg_setup();
2444 #endif
2445
2446 #if CFG_WMT_PROC_FOR_AEE
2447 wmt_dev_proc_for_aee_setup();
2448 #endif
2449
2450 WMT_INFO_FUNC("wmt_dev register thermal cb\n");
2451 wmt_lib_register_thermal_ctrl_cb(wmt_dev_tm_temp_query);
2452 wmt_dev_bgw_desense_init();
2453 gWmtInitDone = 1;
2454 wake_up(&gWmtInitWq);
2455 osal_sleepable_lock_init(&g_es_lr_lock);
2456 INIT_WORK(&gPwrOnOffWork, wmt_pwr_on_off_handler);
2457 #ifdef CONFIG_EARLYSUSPEND
2458 register_early_suspend(&wmt_early_suspend_handler);
2459 WMT_INFO_FUNC("register_early_suspend finished\n");
2460 #else
2461 wmt_fb_notifier.notifier_call = wmt_fb_notifier_callback;
2462 ret = fb_register_client(&wmt_fb_notifier);
2463 if (ret)
2464 WMT_ERR_FUNC("wmt register fb_notifier failed! ret(%d)\n", ret);
2465 else
2466 WMT_INFO_FUNC("wmt register fb_notifier OK!\n");
2467 #endif
2468 WMT_INFO_FUNC("success\n");
2469 return 0;
2470
2471 error:
2472 wmt_lib_deinit();
2473 #if CFG_WMT_DBG_SUPPORT
2474 wmt_dev_dbg_remove();
2475 #endif
2476 #if WMT_CREATE_NODE_DYNAMIC
2477 if (!(IS_ERR(wmt_dev)))
2478 device_destroy(wmt_class, devID);
2479 if (!(IS_ERR(wmt_class))) {
2480 class_destroy(wmt_class);
2481 wmt_class = NULL;
2482 }
2483 #endif
2484
2485 if (cdevErr == 0)
2486 cdev_del(&gWmtCdev);
2487
2488 if (ret == 0) {
2489 unregister_chrdev_region(devID, WMT_DEV_NUM);
2490 gWmtMajor = -1;
2491 }
2492
2493 WMT_ERR_FUNC("fail\n");
2494
2495 return -1;
2496 }
2497
2498 static void WMT_exit(void)
2499 {
2500 dev_t dev = MKDEV(gWmtMajor, 0);
2501
2502 osal_sleepable_lock_deinit(&g_es_lr_lock);
2503 #ifdef CONFIG_EARLYSUSPEND
2504 unregister_early_suspend(&wmt_early_suspend_handler);
2505 WMT_INFO_FUNC("unregister_early_suspend finished\n");
2506 #else
2507 fb_unregister_client(&wmt_fb_notifier);
2508 #endif
2509
2510 wmt_dev_bgw_desense_deinit();
2511
2512 wmt_lib_register_thermal_ctrl_cb(NULL);
2513
2514 wmt_lib_deinit();
2515
2516 #if CFG_WMT_DBG_SUPPORT
2517 wmt_dev_dbg_remove();
2518 #endif
2519
2520 #if CFG_WMT_PROC_FOR_AEE
2521 wmt_dev_proc_for_aee_remove();
2522 #endif
2523 #if WMT_CREATE_NODE_DYNAMIC
2524 if (wmt_dev) {
2525 device_destroy(wmt_class, dev);
2526 wmt_dev = NULL;
2527 }
2528 if (wmt_class) {
2529 class_destroy(wmt_class);
2530 wmt_class = NULL;
2531 }
2532 #endif
2533 cdev_del(&gWmtCdev);
2534 unregister_chrdev_region(dev, WMT_DEV_NUM);
2535 gWmtMajor = -1;
2536
2537 stp_drv_exit();
2538
2539 WMT_INFO_FUNC("done\n");
2540 }
2541
2542 #ifdef MTK_WCN_REMOVE_KERNEL_MODULE
2543
> 2544 int mtk_wcn_soc_common_drv_init(void)
2545 {
2546 return WMT_init();
2547
2548 }
2549 EXPORT_SYMBOL(mtk_wcn_soc_common_drv_init);
> 2550 void mtk_wcn_soc_common_drv_exit(void)
2551 {
2552 return WMT_exit();
2553 }
2554 EXPORT_SYMBOL(mtk_wcn_soc_common_drv_exit);
2555
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months