lkml.org 
[lkml]   [2021]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[linux-stable-rc:linux-5.4.y 4185/4210] drivers/net/wireless/intel/iwlwifi/fw/dbg.c:2484:6: warning: variable 'ret' set but not used
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: 6f04e8ca5355b84edfdd022f0bb4dc18200341ef
commit: be8a3aecd21ae4769766ca6f1a88a1fbfbe2d148 [4185/4210] iwlwifi: dbg: don't abort if sending DBGC_SUSPEND_RESUME fails
config: x86_64-randconfig-a015-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=be8a3aecd21ae4769766ca6f1a88a1fbfbe2d148
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout be8a3aecd21ae4769766ca6f1a88a1fbfbe2d148
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

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/net/wireless/intel/iwlwifi/fw/dbg.c:2484:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^
1 warning generated.


vim +/ret +2484 drivers/net/wireless/intel/iwlwifi/fw/dbg.c

b721f5b1be18ae Shahar S Matityahu 2019-05-21 2479
be8a3aecd21ae4 Luca Coelho 2020-03-06 2480 void iwl_fw_dbg_stop_restart_recording(struct iwl_fw_runtime *fwrt,
576058330f2d24 Shahar S Matityahu 2019-05-19 2481 struct iwl_fw_dbg_params *params,
576058330f2d24 Shahar S Matityahu 2019-05-19 2482 bool stop)
b721f5b1be18ae Shahar S Matityahu 2019-05-21 2483 {
576058330f2d24 Shahar S Matityahu 2019-05-19 @2484 int ret = 0;

:::::: The code at line 2484 was first introduced by commit
:::::: 576058330f2d2403c93a66f48dfa98d90c6f7922 iwlwifi: dbg: support debug recording suspend resume command

:::::: TO: Shahar S Matityahu <shahar.s.matityahu@intel.com>
:::::: CC: Luca Coelho <luciano.coelho@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-19 00:26    [W:0.048 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site