[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007251745.uQKfU3TB%lkp@intel.com>
Date: Sat, 25 Jul 2020 17:30:50 +0800
From: kernel test robot <lkp@...el.com>
To: Tzu-En Huang <tehuang@...ltek.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Kalle Valo <kvalo@...eaurora.org>,
Yan-Hsuan Chuang <yhchuang@...ltek.com>,
Chris Chiu <chiu@...lessm.com>
Subject: drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type
qualifiers ignored on function return type
Hi Tzu-En,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 23ee3e4e5bd27bdbc0f1785eef7209ce872794c7
commit: c97ee3e0bea29827f4b44276fc792bd32977edb0 rtw88: add power tracking support
date: 9 months ago
config: arc-randconfig-r026-20200725 (attached as .config)
compiler: arc-elf-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
git checkout c97ee3e0bea29827f4b44276fc792bd32977edb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
88 | static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev)
| ^~~~~
drivers/net/wireless/realtek/rtw88/rtw8822b.c:1440:6: warning: no previous prototype for 'rtw8822b_pwr_track' [-Wmissing-prototypes]
1440 | void rtw8822b_pwr_track(struct rtw_dev *rtwdev)
| ^~~~~~~~~~~~~~~~~~
vim +88 drivers/net/wireless/realtek/rtw88/rtw8822b.c
87
> 88 static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev)
89 {
90 u8 i = 0;
91 u32 swing, table_value;
92
93 swing = rtw_read32_mask(rtwdev, 0xc1c, 0xffe00000);
94 for (i = 0; i < RTW_TXSCALE_SIZE; i++) {
95 table_value = rtw8822b_txscale_tbl[i];
96 if (swing == table_value)
97 break;
98 }
99
100 return i;
101 }
102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (24192 bytes)
Powered by blists - more mailing lists