[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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux