From: kernel test robot <lkp@intel.com>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Claudiu Manoil <claudiu.manoil@nxp.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>
Subject: [linux-next:master 6474/7611] drivers/net/ethernet/freescale/enetc/enetc.c:452:16: error: implicit declaration of function 'csum_ipv6_magic'
Date: Tue, 12 Oct 2021 19:47:03 +0800 [thread overview]
Message-ID: <202110121956.1YGv5PSE-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3086 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6d3d22efa090e7a5d3691613297aab12c6d2708a
commit: fb8629e2cbfce2b695521d6d33d029117ceda007 [6474/7611] net: enetc: add support for software TSO
config: riscv-randconfig-c006-20211012 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fb8629e2cbfce2b695521d6d33d029117ceda007
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fb8629e2cbfce2b695521d6d33d029117ceda007
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
>> drivers/net/ethernet/freescale/enetc/enetc.c:452:16: error: implicit declaration of function 'csum_ipv6_magic' [-Werror,-Wimplicit-function-declaration]
csum_final = csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
^
drivers/net/ethernet/freescale/enetc/enetc.c:452:16: note: did you mean 'csum_tcpudp_magic'?
include/asm-generic/checksum.h:52:1: note: 'csum_tcpudp_magic' declared here
csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len,
^
1 error generated.
vim +/csum_ipv6_magic +452 drivers/net/ethernet/freescale/enetc/enetc.c
436
437 static void enetc_tso_complete_csum(struct enetc_bdr *tx_ring, struct tso_t *tso,
438 struct sk_buff *skb, char *hdr, int len,
439 __wsum sum)
440 {
441 char *l4_hdr = hdr + skb_transport_offset(skb);
442 __sum16 csum_final;
443
444 /* Complete the L4 checksum by appending the pseudo-header to the
445 * already computed checksum.
446 */
447 if (!tso->ipv6)
448 csum_final = csum_tcpudp_magic(ip_hdr(skb)->saddr,
449 ip_hdr(skb)->daddr,
450 len, ip_hdr(skb)->protocol, sum);
451 else
> 452 csum_final = csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
453 &ipv6_hdr(skb)->daddr,
454 len, ipv6_hdr(skb)->nexthdr, sum);
455
456 if (tso->tlen != sizeof(struct udphdr)) {
457 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr);
458
459 tcph->check = csum_final;
460 } else {
461 struct udphdr *udph = (struct udphdr *)(l4_hdr);
462
463 udph->check = csum_final;
464 }
465 }
466
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39050 bytes --]
reply other threads:[~2021-10-12 11:47 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=202110121956.1YGv5PSE-lkp@intel.com \
--to=lkp@intel.com \
--cc=claudiu.manoil@nxp.com \
--cc=ioana.ciornei@nxp.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=vladimir.oltean@nxp.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox