Search Linux Wireless

[mac80211-next:rtnl 3/4] drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c:2444:14: error: incompatible pointer types passing 'struct wiphy to parameter of type 'struct wiphy remove &

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git rtnl
head:   24431371abdbc37e228fb7041e3b6e0d7e9be359
commit: fd7ee4407f4ffbf7c318f8d87cce7f4a151cbe13 [3/4] rtnl-fixes
config: arm-randconfig-r033-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git/commit/?id=fd7ee4407f4ffbf7c318f8d87cce7f4a151cbe13
        git remote add mac80211-next https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
        git fetch --no-tags mac80211-next rtnl
        git checkout fd7ee4407f4ffbf7c318f8d87cce7f4a151cbe13
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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/broadcom/brcm80211/brcmfmac/p2p.c:2444:14: error: incompatible pointer types passing 'struct wiphy **' to parameter of type 'struct wiphy *'; remove & [-Werror,-Wincompatible-pointer-types]
                   wiphy_lock(&cfg->wiphy);
                              ^~~~~~~~~~~
   include/net/cfg80211.h:5259:45: note: passing argument to parameter 'wiphy' here
   static inline void wiphy_lock(struct wiphy *wiphy)
                                               ^
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c:2446:16: error: incompatible pointer types passing 'struct wiphy **' to parameter of type 'struct wiphy *'; remove & [-Werror,-Wincompatible-pointer-types]
                   wiphy_unlock(&cfg->wiphy);
                                ^~~~~~~~~~~
   include/net/cfg80211.h:5268:47: note: passing argument to parameter 'wiphy' here
   static inline void wiphy_unlock(struct wiphy *wiphy)
                                                 ^
   2 errors generated.


vim +2444 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c

  2432	
  2433	void brcmf_p2p_ifp_removed(struct brcmf_if *ifp, bool locked)
  2434	{
  2435		struct brcmf_cfg80211_info *cfg;
  2436		struct brcmf_cfg80211_vif *vif;
  2437	
  2438		brcmf_dbg(INFO, "P2P: device interface removed\n");
  2439		vif = ifp->vif;
  2440		cfg = wdev_to_cfg(&vif->wdev);
  2441		cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE].vif = NULL;
  2442		if (locked) {
  2443			rtnl_lock();
> 2444			wiphy_lock(&cfg->wiphy);
  2445			cfg80211_unregister_wdev(&vif->wdev);
  2446			wiphy_unlock(&cfg->wiphy);
  2447			rtnl_unlock();
  2448		} else {
  2449			cfg80211_unregister_wdev(&vif->wdev);
  2450		}
  2451		brcmf_free_vif(vif);
  2452	}
  2453	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux