[linux-next:master 6474/7611] drivers/net/ethernet/freescale/enetc/enetc.c:452:16: error: implicit declaration of function 'csum_ipv6_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:   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@xxxxxxxxx>

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