RE: drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type

From: Tony Chuang
Date: Thu Aug 27 2020 - 22:27:11 EST


Hi Andy

> + linux-wireless
>
> kernel test robot <lkp@xxxxxxxxx> writes:
>
> > Hi Tzu-En,
> >
> > First bad commit (maybe != root cause):
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> > head: 15bc20c6af4ceee97a1f90b43c0e386643c071b4
> > commit: f745eb9ca5bf823bc5c0f82a434cefb41c57844e rtw88: 8821c: Add
> 8821CE to Kconfig and Makefile
> > date: 6 weeks ago
> > config: arm-randconfig-r012-20200827 (attached as .config)
> > compiler: arm-linux-gnueabi-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 f745eb9ca5bf823bc5c0f82a434cefb41c57844e
> > # save the attached .config to linux build tree
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0
> make.cross ARCH=arm
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> >
> > All warnings (new ones prefixed by >>):
> >
> >>> drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type
> qualifiers ignored on function return type [-Wignored-qualifiers]
> > 71 | static const u8 rtw8821c_get_swing_index(struct rtw_dev
> *rtwdev)
> > | ^~~~~
>
> Tony, please check this.
>

Andy, please send a patch to fix it.

Thanks,
Yen-Hsuan