tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
staging-testing
head: 5b4f167ef3555ec4c334a8dc89c1b44bb2c6bff5
commit: f4a0ab46339c8cab92c38c652e387c0afa1cd435 [381/409] staging: rtl8188eu: remove all
DBG_88E calls from os_dep/ioctl_linux.c
config: mips-allyesconfig (attached as .config)
compiler: mips-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/gregkh/staging.git/commit...
git remote add staging
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git fetch --no-tags staging staging-testing
git checkout f4a0ab46339c8cab92c38c652e387c0afa1cd435
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c: In function 'rtw_wx_set_mlme':
> drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning:
variable 'reason' set but not used [-Wunused-but-set-variable]
981 |
u16 reason;
| ^~~~~~
vim +/reason +981 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
a2c60d42d97cdb Larry Finger 2013-08-21 975
a2c60d42d97cdb Larry Finger 2013-08-21 976 static int rtw_wx_set_mlme(struct
net_device *dev,
a2c60d42d97cdb Larry Finger 2013-08-21 977 struct iw_request_info *info,
a2c60d42d97cdb Larry Finger 2013-08-21 978 union iwreq_data *wrqu, char *extra)
a2c60d42d97cdb Larry Finger 2013-08-21 979 {
a2c60d42d97cdb Larry Finger 2013-08-21 980 int ret = 0;
a2c60d42d97cdb Larry Finger 2013-08-21 @981 u16 reason;
1665c8fdffbb8a Martin Kaiser 2021-03-21 982 struct adapter *padapter =
netdev_priv(dev);
a2c60d42d97cdb Larry Finger 2013-08-21 983 struct iw_mlme *mlme = (struct iw_mlme
*)extra;
a2c60d42d97cdb Larry Finger 2013-08-21 984
4fe514dc2049b0 Amit Ghadge 2016-09-04 985 if (!mlme)
a2c60d42d97cdb Larry Finger 2013-08-21 986 return -1;
a2c60d42d97cdb Larry Finger 2013-08-21 987
a2c60d42d97cdb Larry Finger 2013-08-21 988 reason = mlme->reason_code;
a2c60d42d97cdb Larry Finger 2013-08-21 989
a2c60d42d97cdb Larry Finger 2013-08-21 990 switch (mlme->cmd) {
a2c60d42d97cdb Larry Finger 2013-08-21 991 case IW_MLME_DEAUTH:
a2c60d42d97cdb Larry Finger 2013-08-21 992 if
(!rtw_set_802_11_disassociate(padapter))
a2c60d42d97cdb Larry Finger 2013-08-21 993 ret = -1;
a2c60d42d97cdb Larry Finger 2013-08-21 994 break;
a2c60d42d97cdb Larry Finger 2013-08-21 995 case IW_MLME_DISASSOC:
a2c60d42d97cdb Larry Finger 2013-08-21 996 if
(!rtw_set_802_11_disassociate(padapter))
a2c60d42d97cdb Larry Finger 2013-08-21 997 ret = -1;
a2c60d42d97cdb Larry Finger 2013-08-21 998 break;
a2c60d42d97cdb Larry Finger 2013-08-21 999 default:
a2c60d42d97cdb Larry Finger 2013-08-21 1000 return -EOPNOTSUPP;
a2c60d42d97cdb Larry Finger 2013-08-21 1001 }
a2c60d42d97cdb Larry Finger 2013-08-21 1002 return ret;
a2c60d42d97cdb Larry Finger 2013-08-21 1003 }
a2c60d42d97cdb Larry Finger 2013-08-21 1004
:::::: The code at line 981 was first introduced by commit
:::::: a2c60d42d97cdbeee3c7371cd3502fca77f07d39 staging: r8188eu: Add files for new driver
- part 16
:::::: TO: Larry Finger <Larry.Finger(a)lwfinger.net>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org