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 388/409] drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:13: warning: variable 'macid' set but not used
Date: Wed, 16 Jun 2021 00:01:39 +0800	[thread overview]
Message-ID: <202106160031.2wzPYrV9-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   5b4f167ef3555ec4c334a8dc89c1b44bb2c6bff5
commit: 9a5ad3a2a4e6f948efbc5f4ddde8190dc25d2058 [388/409] staging: rtl8188eu: remove all DBG_88E calls from hal/rtl8188e_cmd.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=9a5ad3a2a4e6f948efbc5f4ddde8190dc25d2058
        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 9a5ad3a2a4e6f948efbc5f4ddde8190dc25d2058
        # 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/hal/rtl8188e_cmd.c: In function 'rtl8188e_set_FwMediaStatus_cmd':
>> drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:13: warning: variable 'macid' set but not used [-Wunused-but-set-variable]
     180 |  u8 opmode, macid;
         |             ^~~~~
>> drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:5: warning: variable 'opmode' set but not used [-Wunused-but-set-variable]
     180 |  u8 opmode, macid;
         |     ^~~~~~


vim +/macid +180 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c

7ef8ded0cfdb69 Larry Finger         2013-08-21  177  
7ef8ded0cfdb69 Larry Finger         2013-08-21  178  void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt)
7ef8ded0cfdb69 Larry Finger         2013-08-21  179  {
7ef8ded0cfdb69 Larry Finger         2013-08-21 @180  	u8 opmode, macid;
7ef8ded0cfdb69 Larry Finger         2013-08-21  181  	u16 mst_rpt = le16_to_cpu(mstatus_rpt);
fc988e144cca2a Yamanappagouda Patil 2017-02-21  182  
7ef8ded0cfdb69 Larry Finger         2013-08-21  183  	opmode = (u8)mst_rpt;
7ef8ded0cfdb69 Larry Finger         2013-08-21  184  	macid = (u8)(mst_rpt >> 8);
7ef8ded0cfdb69 Larry Finger         2013-08-21  185  
7ef8ded0cfdb69 Larry Finger         2013-08-21  186  	FillH2CCmd_88E(adapt, H2C_COM_MEDIA_STATUS_RPT, sizeof(mst_rpt), (u8 *)&mst_rpt);
7ef8ded0cfdb69 Larry Finger         2013-08-21  187  }
7ef8ded0cfdb69 Larry Finger         2013-08-21  188  

:::::: The code at line 180 was first introduced by commit
:::::: 7ef8ded0cfdb690e37581af85eea35fa67cdb38d staging: r8188eu: Add files for new driver - part 13

:::::: 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 16:02 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=202106160031.2wzPYrV9-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).