Re: [kvalo-ath:pending 53/53] drivers/net/wireless/ath/wcn36xx/txrx.c:275:42: error: variable 'sband' set but not used

From: Kalle Valo
Date: Wed Nov 03 2021 - 04:04:01 EST


kernel test robot <lkp@xxxxxxxxx> writes:

> tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
> head: 1619f62ef8c1766f887eeef36f4d03f01c16b4c9
> commit: 1619f62ef8c1766f887eeef36f4d03f01c16b4c9 [53/53] wcn36xx: fix RX BD rate mapping for 5GHz legacy rates
> config: arc-allyesconfig (attached as .config)
> compiler: arceb-elf-gcc (GCC) 11.2.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/kvalo/ath.git/commit/?id=1619f62ef8c1766f887eeef36f4d03f01c16b4c9
> git remote add kvalo-ath https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
> git fetch --no-tags kvalo-ath pending
> git checkout 1619f62ef8c1766f887eeef36f4d03f01c16b4c9
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> drivers/net/wireless/ath/wcn36xx/txrx.c: In function 'wcn36xx_rx_skb':
>>> drivers/net/wireless/ath/wcn36xx/txrx.c:275:42: error: variable 'sband' set but not used [-Werror=unused-but-set-variable]
> 275 | struct ieee80211_supported_band *sband;
> | ^~~~~
> cc1: all warnings being treated as errors

This is a warning in the pending branch. I'll drop this version,
Benjamin please fix the warning in v2.

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches