DriverDev-Devel Archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Phillip Potter <phil@philpotter.co.uk>
Cc: devel@driverdev.osuosl.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	kbuild-all@lists.01.org
Subject: [staging:staging-testing 381/409] drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:981:6: warning: variable 'reason' set but not used
Date: Tue, 15 Jun 2021 23:46:04 +0800	[thread overview]
Message-ID: <202106152354.hflSY2WP-lkp@intel.com> (raw)

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

                 reply	other threads:[~2021-06-15 15:47 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=202106152354.hflSY2WP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=phil@philpotter.co.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).