All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com,
	Guenter Roeck <groeck@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 37/45] drivers/net/wireless/mediatek/mt76/mt7925/main.c:382:2: error: call to undeclared function 'mt76_wcid_init'; ISO C99 and later do not support implicit function declarations
Date: Sat, 4 May 2024 16:48:28 +0800	[thread overview]
Message-ID: <202405041625.eHCoTsUb-lkp@intel.com> (raw)

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head:   ba7101f72dd4f7ecfae7894a8aba538755b2b1d8
commit: b106c213e385980ee7d300427b9e4e5866c8e071 [37/45] BACKPORT: wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips
config: x86_64-randconfig-161-20240504 (https://download.01.org/0day-ci/archive/20240504/202405041625.eHCoTsUb-lkp@intel.com/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405041625.eHCoTsUb-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405041625.eHCoTsUb-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/wireless/mediatek/mt76/mt7925/main.c:382:2: error: call to undeclared function 'mt76_wcid_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     382 |         mt76_wcid_init(&mvif->sta.wcid);
         |         ^
   drivers/net/wireless/mediatek/mt76/mt7925/main.c:382:2: note: did you mean 'mt76_mmio_init'?
   drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1041:6: note: 'mt76_mmio_init' declared here
    1041 | void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs);
         |      ^
   1 error generated.


vim +/mt76_wcid_init +382 drivers/net/wireless/mediatek/mt76/mt7925/main.c

   339	
   340	static int
   341	mt7925_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
   342	{
   343		struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
   344		struct mt792x_dev *dev = mt792x_hw_dev(hw);
   345		struct mt792x_phy *phy = mt792x_hw_phy(hw);
   346		struct mt76_txq *mtxq;
   347		int idx, ret = 0;
   348	
   349		mt792x_mutex_acquire(dev);
   350	
   351		mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask);
   352		if (mvif->mt76.idx >= MT792x_MAX_INTERFACES) {
   353			ret = -ENOSPC;
   354			goto out;
   355		}
   356	
   357		mvif->mt76.omac_idx = mvif->mt76.idx;
   358		mvif->phy = phy;
   359		mvif->mt76.band_idx = 0;
   360		mvif->mt76.wmm_idx = mvif->mt76.idx % MT76_CONNAC_MAX_WMM_SETS;
   361	
   362		if (phy->mt76->chandef.chan->band != NL80211_BAND_2GHZ)
   363			mvif->mt76.basic_rates_idx = MT792x_BASIC_RATES_TBL + 4;
   364		else
   365			mvif->mt76.basic_rates_idx = MT792x_BASIC_RATES_TBL;
   366	
   367		ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid,
   368						  true);
   369		if (ret)
   370			goto out;
   371	
   372		dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx);
   373		phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx);
   374	
   375		idx = MT792x_WTBL_RESERVED - mvif->mt76.idx;
   376	
   377		INIT_LIST_HEAD(&mvif->sta.wcid.poll_list);
   378		mvif->sta.wcid.idx = idx;
   379		mvif->sta.wcid.phy_idx = mvif->mt76.band_idx;
   380		mvif->sta.wcid.hw_key_idx = -1;
   381		mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET;
 > 382		mt76_wcid_init(&mvif->sta.wcid);
   383	
   384		mt7925_mac_wtbl_update(dev, idx,
   385				       MT_WTBL_UPDATE_ADM_COUNT_CLEAR);
   386	
   387		ewma_rssi_init(&mvif->rssi);
   388	
   389		rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid);
   390		if (vif->txq) {
   391			mtxq = (struct mt76_txq *)vif->txq->drv_priv;
   392			mtxq->wcid = idx;
   393		}
   394	
   395		vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER;
   396	out:
   397		mt792x_mutex_release(dev);
   398	
   399		return ret;
   400	}
   401	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-05-04  8:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202405041625.eHCoTsUb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=groeck@google.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.