linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 1703/1937] include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
@ 2021-11-17 17:49 kernel test robot
  2021-11-17 17:53 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-11-17 17:49 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: kbuild-all, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3368 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   fd96a4057bd015d194a4b87e7c149fc2fef3c166
commit: 4721031c3559db8eae61df305f10c00099a7c1d0 [1703/1937] net: move gro definitions to include/net/gro.h
config: nios2-defconfig (attached as .config)
compiler: nios2-linux-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=4721031c3559db8eae61df305f10c00099a7c1d0
        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 4721031c3559db8eae61df305f10c00099a7c1d0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

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 >>):

   In file included from net/core/skbuff.c:67:
   include/net/gro.h: In function 'ip6_gro_compute_pseudo':
>> include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
     413 |         return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
         |                             ^~~~~~~~~~~~~~~
         |                             csum_tcpudp_magic
   In file included from net/core/skbuff.c:70:
   include/net/ip6_checksum.h: At top level:
>> include/net/ip6_checksum.h:34:9: error: conflicting types for 'csum_ipv6_magic'; have '__sum16(const struct in6_addr *, const struct in6_addr *, __u32,  __u8,  __wsum)' {aka 'short unsigned int(const struct in6_addr *, const struct in6_addr *, unsigned int,  unsigned char,  unsigned int)'}
      34 | __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
         |         ^~~~~~~~~~~~~~~
   In file included from net/core/skbuff.c:67:
   include/net/gro.h:413:29: note: previous implicit declaration of 'csum_ipv6_magic' with type 'int()'
     413 |         return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
         |                             ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from net/core/dev.c:105:
   include/net/gro.h: In function 'ip6_gro_compute_pseudo':
>> include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
     413 |         return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
         |                             ^~~~~~~~~~~~~~~
         |                             csum_tcpudp_magic
   cc1: some warnings being treated as errors


vim +413 include/net/gro.h

   408	
   409	static inline __wsum ip6_gro_compute_pseudo(struct sk_buff *skb, int proto)
   410	{
   411		const struct ipv6hdr *iph = skb_gro_network_header(skb);
   412	
 > 413		return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
   414						    skb_gro_len(skb), proto, 0));
   415	}
   416	

---
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: 10297 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 1703/1937] include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
  2021-11-17 17:49 [linux-next:master 1703/1937] include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? kernel test robot
@ 2021-11-17 17:53 ` Eric Dumazet
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2021-11-17 17:53 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, Linux Memory Management List

On Wed, Nov 17, 2021 at 9:51 AM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   fd96a4057bd015d194a4b87e7c149fc2fef3c166
> commit: 4721031c3559db8eae61df305f10c00099a7c1d0 [1703/1937] net: move gro definitions to include/net/gro.h
> config: nios2-defconfig (attached as .config)
> compiler: nios2-linux-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=4721031c3559db8eae61df305f10c00099a7c1d0
>         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 4721031c3559db8eae61df305f10c00099a7c1d0
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
>
> 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 >>):

This has been fixed in

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=75082e7f46809432131749f4ecea66864d0f7438

Thanks for the report !


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-17 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 17:49 [linux-next:master 1703/1937] include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? kernel test robot
2021-11-17 17:53 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox