From: kernel test robot <lkp@intel.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Johannes Berg <johannes.berg@intel.com>
Subject: drivers/net/wireless/intel/iwlwifi/mei/net.c:400: undefined reference to `ieee80211_hdrlen'
Date: Mon, 14 Mar 2022 11:31:03 +0800 [thread overview]
Message-ID: <202203141142.6EHviCS0-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 09688c0166e76ce2fb85e86b9d99be8b0084cdf9
commit: 875ad06015329314c594d3302ac2bbea37774543 iwlwifi: fix build error for IWLMEI
date: 11 days ago
config: i386-randconfig-a001-20220314 (https://download.01.org/0day-ci/archive/20220314/202203141142.6EHviCS0-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=875ad06015329314c594d3302ac2bbea37774543
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 875ad06015329314c594d3302ac2bbea37774543
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: drivers/net/wireless/intel/iwlwifi/mei/net.o: in function `iwl_mei_tx_copy_to_csme':
>> drivers/net/wireless/intel/iwlwifi/mei/net.c:400: undefined reference to `ieee80211_hdrlen'
vim +400 drivers/net/wireless/intel/iwlwifi/mei/net.c
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 364
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 365 #define DHCP_SERVER_PORT 67
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 366 #define DHCP_CLIENT_PORT 68
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 367 void iwl_mei_tx_copy_to_csme(struct sk_buff *origskb, unsigned int ivlen)
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 368 {
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 369 struct ieee80211_hdr *hdr;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 370 struct sk_buff *skb;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 371 struct ethhdr ethhdr;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 372 struct ethhdr *eth;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 373
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 374 /* Catch DHCP packets */
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 375 if (origskb->protocol != htons(ETH_P_IP) ||
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 376 ip_hdr(origskb)->protocol != IPPROTO_UDP ||
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 377 udp_hdr(origskb)->source != htons(DHCP_CLIENT_PORT) ||
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 378 udp_hdr(origskb)->dest != htons(DHCP_SERVER_PORT))
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 379 return;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 380
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 381 /*
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 382 * We could be a bit less aggressive here and not copy everything, but
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 383 * this is very rare anyway, do don't bother much.
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 384 */
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 385 skb = skb_copy(origskb, GFP_ATOMIC);
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 386 if (!skb)
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 387 return;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 388
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 389 skb->protocol = origskb->protocol;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 390
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 391 hdr = (void *)skb->data;
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 392
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 393 memcpy(ethhdr.h_dest, ieee80211_get_DA(hdr), ETH_ALEN);
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 394 memcpy(ethhdr.h_source, ieee80211_get_SA(hdr), ETH_ALEN);
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 395
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 396 /*
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 397 * Remove the ieee80211 header + IV + SNAP but leave the ethertype
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 398 * We still have enough headroom for the sap header.
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 399 */
2da4366f9e2c44 Emmanuel Grumbach 2021-11-12 @400 pskb_pull(skb, ieee80211_hdrlen(hdr->frame_control) + ivlen + 6);
:::::: The code at line 400 was first introduced by commit
:::::: 2da4366f9e2c44afedec4acad65a99a3c7da1a35 iwlwifi: mei: add the driver to allow cooperation with CSME
:::::: TO: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
:::::: CC: Kalle Valo <kvalo@codeaurora.org>
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-14 3:32 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=202203141142.6EHviCS0-lkp@intel.com \
--to=lkp@intel.com \
--cc=johannes.berg@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
/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.