[arm-platforms:kvm-arm64/mmu-pgt 773/874] drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h:123:16: warning: 'txchain' is used uninitialized
kernel test robot
lkp at intel.com
Sat May 18 03:50:13 PDT 2024
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/mmu-pgt
head: 1ed29f79e7c6441ef29c25a43d7c82d91e884dcc
commit: e529bcaa17060f516d1e4f345ea460ea206317d1 [773/874] [brcmfmac] Compute number of available antennas and set it in wiphy structure.
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240518/202405181803.0kfJ27Ki-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240518/202405181803.0kfJ27Ki-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405181803.0kfJ27Ki-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:30:
In function 'brcmf_fil_iovar_int_get',
inlined from 'brcmf_setup_wiphybands' at drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:7359:8:
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h:123:16: warning: 'txchain' is used uninitialized [-Wuninitialized]
123 | __le32 data_le = cpu_to_le32(*data);
| ^~~~~~~
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c: In function 'brcmf_setup_wiphybands':
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:7316:13: note: 'txchain' was declared here
7316 | u32 txchain;
| ^~~~~~~
vim +/txchain +123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 108
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 109 s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, const char *name,
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 110 const void *data, u32 len);
e7191182adc51c drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Hector Martin 2022-02-01 111 s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, const char *name, void *data,
81f5dcb8083077 drivers/net/wireless/brcm80211/brcmfmac/fwil.h Hante Meuleman 2012-10-22 112 u32 len);
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 113 static inline
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 114 s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, const char *name, u32 data)
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 115 {
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 116 __le32 data_le = cpu_to_le32(data);
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 117
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 118 return brcmf_fil_iovar_data_set(ifp, name, &data_le, sizeof(data_le));
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 119 }
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 120 static inline
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 121 s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, const char *name, u32 *data)
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 122 {
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 @123 __le32 data_le = cpu_to_le32(*data);
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 124 s32 err;
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 125
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 126 err = brcmf_fil_iovar_data_get(ifp, name, &data_le, sizeof(data_le));
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 127 if (err == 0)
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 128 *data = le32_to_cpu(data_le);
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 129 return err;
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 130 }
31343230abb168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h Arend van Spriel 2024-01-03 131
:::::: The code at line 123 was first introduced by commit
:::::: 31343230abb1683e8afb254e6b13a7a7fd01fcac wifi: brcmfmac: export firmware interface functions
:::::: TO: Arend van Spriel <arend.vanspriel at broadcom.com>
:::::: CC: Kalle Valo <kvalo at kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list