[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201706230117.7xelzHWK%fengguang.wu@intel.com>
Date: Fri, 23 Jun 2017 01:50:13 +0800
From: kbuild test robot <lkp@...el.com>
To: Wei Wang <tracywwnj@...il.com>
Cc: kbuild-all@...org, David Miller <davem@...emloft.net>,
netdev@...r.kernel.org,
Subash Abhinov Kasiviswanathan <subashab@...eaurora.org>,
Maciej Żenczykowski <maze@...gle.com>,
Wei Wang <weiwan@...gle.com>
Subject: Re: [PATCH net] udp: ipv6: reset daddr and dport in sk if connect()
fails
Hi Wei,
[auto build test ERROR on net/master]
url: https://github.com/0day-ci/linux/commits/Wei-Wang/udp-ipv6-reset-daddr-and-dport-in-sk-if-connect-fails/20170623-011149
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha
All error/warnings (new ones prefixed by >>):
net//ipv6/datagram.c: In function '__ip6_datagram_connect':
net//ipv6/datagram.c:257:30: error: expected ')' before 'sizeof'
memset(&sk->sk_v6_daddr, 0 sizeof(sk->sk_v6_daddr);
^~~~~~
In file included from include/linux/string.h:18:0,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from include/linux/interrupt.h:9,
from net//ipv6/datagram.c:18:
>> arch/alpha/include/asm/string.h:45:16: error: too few arguments to function '__memset'
#define memset __memset
^
>> net//ipv6/datagram.c:257:3: note: in expansion of macro 'memset'
memset(&sk->sk_v6_daddr, 0 sizeof(sk->sk_v6_daddr);
^~~~~~
arch/alpha/include/asm/string.h:32:21: note: declared here
extern inline void *__memset(void *s, int c, size_t n)
^~~~~~~~
net//ipv6/datagram.c:260:2: error: expected ';' before '}' token
}
^
--
net/ipv6/datagram.c: In function '__ip6_datagram_connect':
net/ipv6/datagram.c:257:30: error: expected ')' before 'sizeof'
memset(&sk->sk_v6_daddr, 0 sizeof(sk->sk_v6_daddr);
^~~~~~
In file included from include/linux/string.h:18:0,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from include/linux/interrupt.h:9,
from net/ipv6/datagram.c:18:
>> arch/alpha/include/asm/string.h:45:16: error: too few arguments to function '__memset'
#define memset __memset
^
net/ipv6/datagram.c:257:3: note: in expansion of macro 'memset'
memset(&sk->sk_v6_daddr, 0 sizeof(sk->sk_v6_daddr);
^~~~~~
arch/alpha/include/asm/string.h:32:21: note: declared here
extern inline void *__memset(void *s, int c, size_t n)
^~~~~~~~
net/ipv6/datagram.c:260:2: error: expected ';' before '}' token
}
^
vim +/__memset +45 arch/alpha/include/asm/string.h
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 29 /* For gcc 3.x, we cannot have the inline function named "memset" because
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 30 the __builtin_memset will attempt to resolve to the inline as well,
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 31 leading to a "sorry" about unimplemented recursive inlining. */
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 32 extern inline void *__memset(void *s, int c, size_t n)
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 33 {
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 34 if (__builtin_constant_p(c)) {
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 35 if (__builtin_constant_p(n)) {
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 36 return __builtin_memset(s, c, n);
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 37 } else {
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 38 unsigned long c8 = (c & 0xff) * 0x0101010101010101UL;
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 39 return __constant_c_memset(s, c8, n);
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 40 }
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 41 }
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 42 return ___memset(s, c, n);
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 43 }
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 44
a47e5bb5 arch/alpha/include/asm/string.h Richard Henderson 2013-07-11 @45 #define memset __memset
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 46
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 47 #define __HAVE_ARCH_STRCPY
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 48 extern char * strcpy(char *,const char *);
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 49 #define __HAVE_ARCH_STRNCPY
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 50 extern char * strncpy(char *, const char *, size_t);
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 51 #define __HAVE_ARCH_STRCAT
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 52 extern char * strcat(char *, const char *);
^1da177e include/asm-alpha/string.h Linus Torvalds 2005-04-16 53 #define __HAVE_ARCH_STRNCAT
:::::: The code at line 45 was first introduced by commit
:::::: a47e5bb5764f029f989a182b0dd2d4cce69f8b14 alpha: Eliminate compiler warning from memset macro
:::::: TO: Richard Henderson <rth@...ddle.net>
:::::: CC: Matt Turner <mattst88@...il.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (50324 bytes)
Powered by blists - more mailing lists