* drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwvid.c:174 brcmf_fwvid_attach() warn: inconsistent returns 'global &fwvid_list_lock'.
@ 2025-02-24 10:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-24 10:37 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Hector Martin <marcan@marcan.st>
CC: Kalle Valo <kvalo@kernel.org>
CC: Arend van Spriel <arend.vanspriel@broadcom.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
commit: 85da8f71aaa7b83ea7ef0e89182e0cd47e16d465 wifi: brcmfmac: Demote vendor-specific attach/detach messages to info
date: 1 year, 1 month ago
:::::: branch date: 14 hours ago
:::::: commit date: 1 year, 1 month ago
config: powerpc-randconfig-r071-20250224 (https://download.01.org/0day-ci/archive/20250224/202502241801.kEXc4P9w-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 14.2.0
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@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202502241801.kEXc4P9w-lkp@intel.com/
smatch warnings:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwvid.c:174 brcmf_fwvid_attach() warn: inconsistent returns 'global &fwvid_list_lock'.
vim +174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwvid.c
d6a5c562214f26e Arend van Spriel 2022-11-29 151
85da8f71aaa7b83 Hector Martin 2024-01-06 152 int brcmf_fwvid_attach(struct brcmf_pub *drvr)
d6a5c562214f26e Arend van Spriel 2022-11-29 153 {
d6a5c562214f26e Arend van Spriel 2022-11-29 154 enum brcmf_fwvendor fwvid = drvr->bus_if->fwvid;
d6a5c562214f26e Arend van Spriel 2022-11-29 155 int ret;
d6a5c562214f26e Arend van Spriel 2022-11-29 156
d6a5c562214f26e Arend van Spriel 2022-11-29 157 if (fwvid >= ARRAY_SIZE(fwvid_list))
d6a5c562214f26e Arend van Spriel 2022-11-29 158 return -ERANGE;
d6a5c562214f26e Arend van Spriel 2022-11-29 159
d6a5c562214f26e Arend van Spriel 2022-11-29 160 brcmf_dbg(TRACE, "mod=%s: enter: dev %s\n", fwvid_list[fwvid].name,
d6a5c562214f26e Arend van Spriel 2022-11-29 161 dev_name(drvr->bus_if->dev));
d6a5c562214f26e Arend van Spriel 2022-11-29 162
d6a5c562214f26e Arend van Spriel 2022-11-29 163 mutex_lock(&fwvid_list_lock);
d6a5c562214f26e Arend van Spriel 2022-11-29 164
d6a5c562214f26e Arend van Spriel 2022-11-29 165 ret = brcmf_fwvid_request_module(fwvid);
d6a5c562214f26e Arend van Spriel 2022-11-29 166 if (ret)
d6a5c562214f26e Arend van Spriel 2022-11-29 167 return ret;
d6a5c562214f26e Arend van Spriel 2022-11-29 168
d6a5c562214f26e Arend van Spriel 2022-11-29 169 drvr->vops = fwvid_list[fwvid].vops;
d6a5c562214f26e Arend van Spriel 2022-11-29 170 list_add(&drvr->bus_if->list, &fwvid_list[fwvid].drvr_list);
d6a5c562214f26e Arend van Spriel 2022-11-29 171
d6a5c562214f26e Arend van Spriel 2022-11-29 172 mutex_unlock(&fwvid_list_lock);
d6a5c562214f26e Arend van Spriel 2022-11-29 173
d6a5c562214f26e Arend van Spriel 2022-11-29 @174 return ret;
d6a5c562214f26e Arend van Spriel 2022-11-29 175 }
d6a5c562214f26e Arend van Spriel 2022-11-29 176
:::::: The code at line 174 was first introduced by commit
:::::: d6a5c562214f26e442c8ec3ff1e28e16675d1bcf wifi: brcmfmac: add support for vendor-specific firmware api
:::::: TO: Arend van Spriel <arend.vanspriel@broadcom.com>
:::::: CC: Kalle Valo <kvalo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-24 10:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 10:37 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwvid.c:174 brcmf_fwvid_attach() warn: inconsistent returns 'global &fwvid_list_lock' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.