driverdev-devel.linuxdriverproject.org archive mirror
 help / color / mirror / Atom feed
* [staging:staging-testing 381/409] drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning: variable 'reason' set but not used
@ 2021-06-15 15:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-15 15:46 UTC (permalink / raw)
  To: Phillip Potter; +Cc: devel, Greg Kroah-Hartman, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3849 bytes --]

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/?id=f4a0ab46339c8cab92c38c652e387c0afa1cd435
        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@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@lwfinger.net>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.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: 71050 bytes --]

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-15 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 15:46 [staging:staging-testing 381/409] drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning: variable 'reason' set but not used kernel test robot

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).