From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 6725/7405] drivers/net/ethernet/freescale/enetc/enetc.c:452:30: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
Date: Tue, 12 Oct 2021 04:15:44 +0800 [thread overview]
Message-ID: <202110120433.LgrTxsp3-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2923 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d3134eb5de8546a214c028fb7195e764b89da7d4
commit: fb8629e2cbfce2b695521d6d33d029117ceda007 [6725/7405] net: enetc: add support for software TSO
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
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
# 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=gcc-11.2.0 make.cross ARCH=arc
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: In function 'enetc_tso_complete_csum':
>> drivers/net/ethernet/freescale/enetc/enetc.c:452:30: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
452 | csum_final = csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
cc1: all warnings being treated as errors
vim +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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69187 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: 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 6725/7405] drivers/net/ethernet/freescale/enetc/enetc.c:452:30: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
Date: Tue, 12 Oct 2021 04:15:44 +0800 [thread overview]
Message-ID: <202110120433.LgrTxsp3-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2856 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d3134eb5de8546a214c028fb7195e764b89da7d4
commit: fb8629e2cbfce2b695521d6d33d029117ceda007 [6725/7405] net: enetc: add support for software TSO
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
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
# 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=gcc-11.2.0 make.cross ARCH=arc
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: In function 'enetc_tso_complete_csum':
>> drivers/net/ethernet/freescale/enetc/enetc.c:452:30: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
452 | csum_final = csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
cc1: all warnings being treated as errors
vim +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: 69187 bytes --]
next reply other threads:[~2021-10-11 20:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 20:15 kernel test robot [this message]
2021-10-11 20:15 ` [linux-next:master 6725/7405] drivers/net/ethernet/freescale/enetc/enetc.c:452:30: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? kernel test robot
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=202110120433.LgrTxsp3-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.