From: kernel test robot <lkp@intel.com>
To: Zong-Zhe Yang <kevin_yang@realtek.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Kalle Valo <kvalo@codeaurora.org>,
Yan-Hsuan Chuang <yhchuang@realtek.com>
Subject: drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type
Date: Sat, 3 Oct 2020 01:22:50 +0800 [thread overview]
Message-ID: <202010030147.D8p1LS4b-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-10-02 17:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202010030147.D8p1LS4b-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=kevin_yang@realtek.com \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yhchuang@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).