mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tzu-En Huang <tehuang@realtek.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Kalle Valo <kvalo@codeaurora.org>,
	Yan-Hsuan Chuang <yhchuang@realtek.com>,
	Chris Chiu <chiu@endlessm.com>
Subject: drivers/net/wireless/realtek/rtw88/rtw8822b.c:88:8: warning: type qualifiers ignored on function return type
Date: Sat, 25 Jul 2020 17:30:50 +0800	[thread overview]
Message-ID: <202007251745.uQKfU3TB%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-07-25  9:32 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=202007251745.uQKfU3TB%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chiu@endlessm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tehuang@realtek.com \
    --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

all inboxes | Powered by JetHome®