[asahilinux:bits/080-wifi 11/39] drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c:74:10: warning: variable 'len' set but not used
From: kernel test robot
Date: Fri Jan 21 2022 - 09:05:53 EST
tree: https://github.com/AsahiLinux/linux bits/080-wifi
head: 1753101ce16367deadb5ec5ab5dc7ab4894649bf
commit: cc44c86950084bc3437485288390841cf117c0d1 [11/39] brcmfmac: of: Use devm_kstrdup for board_type & check for errors
config: x86_64-randconfig-a003-20220117 (https://download.01.org/0day-ci/archive/20220121/202201212104.gFjUBTm8-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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://github.com/AsahiLinux/linux/commit/cc44c86950084bc3437485288390841cf117c0d1
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/080-wifi
git checkout cc44c86950084bc3437485288390841cf117c0d1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c:74:10: warning: variable 'len' set but not used [-Wunused-but-set-variable]
int i, len;
^
1 warning generated.
vim +/len +74 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
1a3ac5c651a0c85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Shawn Guo 2021-04-17 60
e457a8a01a19277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Rafał Miłecki 2017-01-07 61 void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
e457a8a01a19277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Rafał Miłecki 2017-01-07 62 struct brcmf_mp_device *settings)
61f663dfc1a091c drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 63 {
e457a8a01a19277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Rafał Miłecki 2017-01-07 64 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio;
0ad4b55b2f29784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 65 struct device_node *root, *np = dev->of_node;
61f663dfc1a091c drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 66 int irq;
1a3ac5c651a0c85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Shawn Guo 2021-04-17 67 int err;
61f663dfc1a091c drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 68 u32 irqf;
61f663dfc1a091c drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 69 u32 val;
61f663dfc1a091c drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 70
0ad4b55b2f29784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 71 /* Set board-type to the first string of the machine compatible prop */
0ad4b55b2f29784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 72 root = of_find_node_by_path("/");
0ad4b55b2f29784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 73 if (root) {
29e354ebeeecaee drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Matthias Brugger 2020-07-01 @74 int i, len;
:::::: The code at line 74 was first introduced by commit
:::::: 29e354ebeeecaee979e6fe22cd6272682d7552c9 brcmfmac: Transform compatible string for FW loading
:::::: TO: Matthias Brugger <mbrugger@xxxxxxxx>
:::::: CC: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx