linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type
@ 2020-08-10 14:54 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-08-10 14:54 UTC (permalink / raw)
  To: Tzu-En Huang; +Cc: kbuild-all, linux-kernel, Kalle Valo, Yan-Hsuan Chuang

[-- Attachment #1: Type: text/plain, Size: 2589 bytes --]

Hi Tzu-En,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fc80c51fd4b23ec007e88d4c688f2cac1b8648e7
commit: f745eb9ca5bf823bc5c0f82a434cefb41c57844e rtw88: 8821c: Add 8821CE to Kconfig and Makefile
date:   4 weeks ago
config: alpha-randconfig-r036-20200810 (attached as .config)
compiler: alpha-linux-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 f745eb9ca5bf823bc5c0f82a434cefb41c57844e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
      71 | static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev)
         |        ^~~~~

vim +71 drivers/net/wireless/realtek/rtw88/rtw8821c.c

3a4312828ce13e Tzu-En Huang 2020-06-03  70  
3a4312828ce13e Tzu-En Huang 2020-06-03 @71  static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev)
3a4312828ce13e Tzu-En Huang 2020-06-03  72  {
3a4312828ce13e Tzu-En Huang 2020-06-03  73  	u8 i = 0;
3a4312828ce13e Tzu-En Huang 2020-06-03  74  	u32 swing, table_value;
3a4312828ce13e Tzu-En Huang 2020-06-03  75  
3a4312828ce13e Tzu-En Huang 2020-06-03  76  	swing = rtw_read32_mask(rtwdev, REG_TXSCALE_A, 0xffe00000);
3a4312828ce13e Tzu-En Huang 2020-06-03  77  	for (i = 0; i < ARRAY_SIZE(rtw8821c_txscale_tbl); i++) {
3a4312828ce13e Tzu-En Huang 2020-06-03  78  		table_value = rtw8821c_txscale_tbl[i];
3a4312828ce13e Tzu-En Huang 2020-06-03  79  		if (swing == table_value)
3a4312828ce13e Tzu-En Huang 2020-06-03  80  			break;
3a4312828ce13e Tzu-En Huang 2020-06-03  81  	}
3a4312828ce13e Tzu-En Huang 2020-06-03  82  
3a4312828ce13e Tzu-En Huang 2020-06-03  83  	return i;
3a4312828ce13e Tzu-En Huang 2020-06-03  84  }
3a4312828ce13e Tzu-En Huang 2020-06-03  85  

:::::: The code at line 71 was first introduced by commit
:::::: 3a4312828ce13e1645fd3af76e4314a2623b3361 rtw88: 8821c: add power tracking

:::::: TO: Tzu-En Huang <tehuang@realtek.com>
:::::: CC: Kalle Valo <kvalo@codeaurora.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37352 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type
@ 2020-08-27 10:36 kernel test robot
  2020-08-27 10:45 ` Kalle Valo
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2020-08-27 10:36 UTC (permalink / raw)
  To: Tzu-En Huang; +Cc: kbuild-all, linux-kernel, Kalle Valo, Yan-Hsuan Chuang

[-- Attachment #1: Type: text/plain, Size: 2903 bytes --]

Hi Tzu-En,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   15bc20c6af4ceee97a1f90b43c0e386643c071b4
commit: f745eb9ca5bf823bc5c0f82a434cefb41c57844e rtw88: 8821c: Add 8821CE to Kconfig and Makefile
date:   6 weeks ago
config: arm-randconfig-r012-20200827 (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
        git checkout f745eb9ca5bf823bc5c0f82a434cefb41c57844e
        # 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@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
      71 | static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev)
         |        ^~~~~

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f745eb9ca5bf823bc5c0f82a434cefb41c57844e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f745eb9ca5bf823bc5c0f82a434cefb41c57844e
vim +71 drivers/net/wireless/realtek/rtw88/rtw8821c.c

3a4312828ce13e1 Tzu-En Huang 2020-06-03  70  
3a4312828ce13e1 Tzu-En Huang 2020-06-03 @71  static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev)
3a4312828ce13e1 Tzu-En Huang 2020-06-03  72  {
3a4312828ce13e1 Tzu-En Huang 2020-06-03  73  	u8 i = 0;
3a4312828ce13e1 Tzu-En Huang 2020-06-03  74  	u32 swing, table_value;
3a4312828ce13e1 Tzu-En Huang 2020-06-03  75  
3a4312828ce13e1 Tzu-En Huang 2020-06-03  76  	swing = rtw_read32_mask(rtwdev, REG_TXSCALE_A, 0xffe00000);
3a4312828ce13e1 Tzu-En Huang 2020-06-03  77  	for (i = 0; i < ARRAY_SIZE(rtw8821c_txscale_tbl); i++) {
3a4312828ce13e1 Tzu-En Huang 2020-06-03  78  		table_value = rtw8821c_txscale_tbl[i];
3a4312828ce13e1 Tzu-En Huang 2020-06-03  79  		if (swing == table_value)
3a4312828ce13e1 Tzu-En Huang 2020-06-03  80  			break;
3a4312828ce13e1 Tzu-En Huang 2020-06-03  81  	}
3a4312828ce13e1 Tzu-En Huang 2020-06-03  82  
3a4312828ce13e1 Tzu-En Huang 2020-06-03  83  	return i;
3a4312828ce13e1 Tzu-En Huang 2020-06-03  84  }
3a4312828ce13e1 Tzu-En Huang 2020-06-03  85  

:::::: The code at line 71 was first introduced by commit
:::::: 3a4312828ce13e1645fd3af76e4314a2623b3361 rtw88: 8821c: add power tracking

:::::: TO: Tzu-En Huang <tehuang@realtek.com>
:::::: CC: Kalle Valo <kvalo@codeaurora.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31903 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-28  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 14:54 drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type kernel test robot
2020-08-27 10:36 kernel test robot
2020-08-27 10:45 ` Kalle Valo
2020-08-28  2:26   ` Tony Chuang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).