tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631 commit: 9cf6d7f2c5549b47e0dbf09fd64557a4a69cbd28 [2763/5417] brcmfmac: of: Use devm_kstrdup for board_type & check for errors config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220214/202202140726.ktvzMGFl-lkp@xxxxxxxxx/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/next/linux-next.git/commit/?id=9cf6d7f2c5549b47e0dbf09fd64557a4a69cbd28 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 9cf6d7f2c5549b47e0dbf09fd64557a4a69cbd28 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> Note: the linux-next/master HEAD 6d9bd4ad4ca08b1114e814c2c42383b8b13be631 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c: In function 'brcmf_of_probe': >> drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c:74:24: error: variable 'len' set but not used [-Werror=unused-but-set-variable] 74 | int i, len; | ^~~ cc1: all warnings being treated as errors vim +/len +74 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c 1a3ac5c651a0c8 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Shawn Guo 2021-04-17 60 e457a8a01a1927 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, e457a8a01a1927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Rafał Miłecki 2017-01-07 62 struct brcmf_mp_device *settings) 61f663dfc1a091 drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 63 { e457a8a01a1927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Rafał Miłecki 2017-01-07 64 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; 0ad4b55b2f2978 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 65 struct device_node *root, *np = dev->of_node; 61f663dfc1a091 drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 66 int irq; 1a3ac5c651a0c8 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Shawn Guo 2021-04-17 67 int err; 61f663dfc1a091 drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 68 u32 irqf; 61f663dfc1a091 drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 69 u32 val; 61f663dfc1a091 drivers/net/wireless/brcm80211/brcmfmac/of.c Chen-Yu Tsai 2014-06-29 70 0ad4b55b2f2978 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 */ 0ad4b55b2f2978 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 72 root = of_find_node_by_path("/"); 0ad4b55b2f2978 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c Hans de Goede 2018-10-10 73 if (root) { 29e354ebeeecae 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