[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202010030147.D8p1LS4b-lkp@intel.com>
Date: Sat, 3 Oct 2020 01:22:50 +0800
From: kernel test robot <lkp@...el.com>
To: Zong-Zhe Yang <kevin_yang@...ltek.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Kalle Valo <kvalo@...eaurora.org>,
Yan-Hsuan Chuang <yhchuang@...ltek.com>
Subject: drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type
qualifiers ignored on function return type
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@...el.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@...ltek.com>
:::::: CC: Kalle Valo <kvalo@...eaurora.org>
---
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" (34254 bytes)
Powered by blists - more mailing lists