All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type qualifiers ignored on function return type
@ 2020-07-25  9:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-25  9:30 UTC (permalink / raw)
  To: Tzu-En Huang
  Cc: kbuild-all, linux-kernel, Kalle Valo, Yan-Hsuan Chuang, Chris Chiu

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

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@intel.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

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

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

* drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type qualifiers ignored on function return type
@ 2020-07-25  9:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-25  9:30 UTC (permalink / raw)
  To: kbuild-all

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

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@intel.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

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

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

end of thread, other threads:[~2020-07-25  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25  9:30 drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type qualifiers ignored on function return type kernel test robot
2020-07-25  9:30 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.