linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type
@ 2020-10-02 17:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-02 17:22 UTC (permalink / raw)
  To: Zong-Zhe Yang; +Cc: kbuild-all, linux-kernel, Kalle Valo, Yan-Hsuan Chuang

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   472e5b056f000a778abb41f1e443de58eb259783
commit: 416e87fcc780cae8d72cb9370fa0f46007faa69a rtw88: extract: make 8822b an individual kernel module
date:   5 months ago
config: parisc-randconfig-r024-20201002 (attached as .config)
compiler: hppa-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=416e87fcc780cae8d72cb9370fa0f46007faa69a
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 416e87fcc780cae8d72cb9370fa0f46007faa69a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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 >>):

   In file included from include/linux/mm.h:95,
                    from include/linux/bvec.h:13,
                    from include/linux/skbuff.h:17,
                    from include/linux/if_ether.h:19,
                    from include/net/mac80211.h:18,
                    from drivers/net/wireless/realtek/rtw88/main.h:8,
                    from drivers/net/wireless/realtek/rtw88/rtw8822b.c:6:
   include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
   arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      96 |   pte_t old_pte;     \
         |         ^~~~~~~
   arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
     322 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
         |                                  ^~~~~~~~~~
   include/asm-generic/pgtable.h:202:2: note: in expansion of macro 'pte_clear'
     202 |  pte_clear(mm, address, ptep);
         |  ^~~~~~~~~
   include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
   arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      96 |   pte_t old_pte;     \
         |         ^~~~~~~
   include/asm-generic/pgtable.h:641:2: note: in expansion of macro 'set_pte_at'
     641 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
         |  ^~~~~~~~~~
   drivers/net/wireless/realtek/rtw88/rtw8822b.c: At top level:
>> drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
      90 | static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev)
         |        ^~~~~

vim +90 drivers/net/wireless/realtek/rtw88/rtw8822b.c

c97ee3e0bea298 Tzu-En Huang 2019-10-22   89  
c97ee3e0bea298 Tzu-En Huang 2019-10-22  @90  static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev)
c97ee3e0bea298 Tzu-En Huang 2019-10-22   91  {
c97ee3e0bea298 Tzu-En Huang 2019-10-22   92  	u8 i = 0;
c97ee3e0bea298 Tzu-En Huang 2019-10-22   93  	u32 swing, table_value;
c97ee3e0bea298 Tzu-En Huang 2019-10-22   94  
c97ee3e0bea298 Tzu-En Huang 2019-10-22   95  	swing = rtw_read32_mask(rtwdev, 0xc1c, 0xffe00000);
c97ee3e0bea298 Tzu-En Huang 2019-10-22   96  	for (i = 0; i < RTW_TXSCALE_SIZE; i++) {
c97ee3e0bea298 Tzu-En Huang 2019-10-22   97  		table_value = rtw8822b_txscale_tbl[i];
c97ee3e0bea298 Tzu-En Huang 2019-10-22   98  		if (swing == table_value)
c97ee3e0bea298 Tzu-En Huang 2019-10-22   99  			break;
c97ee3e0bea298 Tzu-En Huang 2019-10-22  100  	}
c97ee3e0bea298 Tzu-En Huang 2019-10-22  101  
c97ee3e0bea298 Tzu-En Huang 2019-10-22  102  	return i;
c97ee3e0bea298 Tzu-En Huang 2019-10-22  103  }
c97ee3e0bea298 Tzu-En Huang 2019-10-22  104  

:::::: The code at line 90 was first introduced by commit
:::::: c97ee3e0bea29827f4b44276fc792bd32977edb0 rtw88: add power tracking support

:::::: 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: 34254 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-02 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 17:22 drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type kernel test robot

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).