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

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

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 16:01 [staging:staging-testing 388/409] drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:180:13: warning: variable 'macid' 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).