tree: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git mld head: 418110601b1711438b8c80cd605d7c65afb3bf40 commit: 3c2ce764e4bc9dc0e31fc58e0483663f85727561 [6/7] mac80211: move interface config to new struct config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220523/202205230957.U8pTkdJT-lkp@xxxxxxxxx/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1443dbaba6f0e57be066995db9164f89fb57b413) 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/wireless/wireless-next.git/commit/?id=3c2ce764e4bc9dc0e31fc58e0483663f85727561 git remote add wireless-next https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git git fetch --no-tags wireless-next mld git checkout 3c2ce764e4bc9dc0e31fc58e0483663f85727561 # save the config file COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <yujie.liu@xxxxxxxxx> clang-analyzer warnings: (new ones prefixed by >>) >> drivers/net/wireless/rsi/rsi_91x_hal.c:310:2: warning: Value stored to 'bss' is never read [clang-analyzer-deadcode.DeadStores] bss = &vif->bss_conf; ^ ~~~~~~~~~~~~~~ vim +/bss +310 drivers/net/wireless/rsi/rsi_91x_hal.c ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 291 ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 292 /* This function sends received data packet from driver to device */ ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 293 int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb) ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 294 { ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 295 struct rsi_hw *adapter = common->priv; eac4eed3224b1b drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-30 296 struct ieee80211_vif *vif; ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 297 struct ieee80211_tx_info *info; ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 @298 struct ieee80211_bss_conf *bss; 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 299 int status = -EINVAL; 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 300 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 301 if (!skb) 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 302 return 0; 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 303 if (common->iface_down) 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 304 goto err; ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 305 ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 306 info = IEEE80211_SKB_CB(skb); 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 307 if (!info->control.vif) 19844c0a9a19ab drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-16 308 goto err; eac4eed3224b1b drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-30 309 vif = info->control.vif; eac4eed3224b1b drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-30 @310 bss = &vif->bss_conf; ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 311 eac4eed3224b1b drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-30 312 if (((vif->type == NL80211_IFTYPE_STATION) || eac4eed3224b1b drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2017-08-30 313 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) && 3c2ce764e4bc9d drivers/net/wireless/rsi/rsi_91x_hal.c Johannes Berg 2022-05-10 314 (!vif->cfg.assoc)) ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 315 goto err; ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 316 2108df3c4b1856 drivers/net/wireless/rsi/rsi_91x_hal.c Prameela Rani Garnepudi 2018-02-27 317 status = rsi_send_pkt_to_bus(common, skb); dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 318 if (status) ceb2e4eab9948a drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 319 rsi_dbg(ERR_ZONE, "%s: Failed to write pkt\n", __func__); dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 320 dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 321 err: dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 322 ++common->tx_stats.total_tx_pkt_freed[skb->priority]; af193097767819 drivers/net/wireless/rsi/rsi_91x_hal.c Pavani Muthyala 2017-07-06 323 rsi_indicate_tx_status(adapter, skb, status); dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 324 return status; dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 325 } dad0d04fa7ba41 drivers/net/wireless/rsi/rsi_91x_pkt.c Fariya Fatima 2014-03-16 326 -- 0-DAY CI Kernel Test Service https://01.org/lkp