* [net-next:master 254/261] net//core/sock.c:3007:23: error: expected '}' before ';' token
@ 2019-04-21 0:53 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-04-21 0:53 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: kbuild-all, netdev
[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 5313794b7915f61d1f503bfa54fbec47ffd8be0b
commit: c7cbdbf29f488a19982cd9f4a109887f18028bbb [254/261] net: rework SIOCGSTAMP ioctl handling
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c7cbdbf29f488a19982cd9f4a109887f18028bbb
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
net//core/sock.c: In function 'sock_gettstamp':
>> net//core/sock.c:3007:23: error: expected '}' before ';' token
.tv_sec = ts.tv_sec;
^
>> net//core/sock.c:3011:4: error: expected ')' before 'return'
return -EFAULT;
^~~~~~
>> net//core/sock.c:3013:2: error: expected expression before '}' token
}
^
vim +3007 net//core/sock.c
2979
2980 int sock_gettstamp(struct socket *sock, void __user *userstamp,
2981 bool timeval, bool time32)
2982 {
2983 struct sock *sk = sock->sk;
2984 struct timespec64 ts;
2985
2986 sock_enable_timestamp(sk, SOCK_TIMESTAMP);
2987 ts = ktime_to_timespec64(sock_read_timestamp(sk));
2988 if (ts.tv_sec == -1)
2989 return -ENOENT;
2990 if (ts.tv_sec == 0) {
2991 ktime_t kt = ktime_get_real();
2992 sock_write_timestamp(sk, kt);;
2993 ts = ktime_to_timespec64(kt);
2994 }
2995
2996 if (timeval)
2997 ts.tv_nsec /= 1000;
2998
2999 #ifdef CONFIG_COMPAT_32BIT_TIME
3000 if (time32)
3001 return put_old_timespec32(&ts, userstamp);
3002 #endif
3003 #ifdef CONFIG_SPARC64
3004 /* beware of padding in sparc64 timeval */
3005 if (timeval && !in_compat_syscall()) {
3006 struct __kernel_old_timeval __user tv = {
> 3007 .tv_sec = ts.tv_sec;
3008 .tv_usec = ts.tv_nsec;
3009 };
3010 if (copy_to_user(userstamp, &tv, sizeof(tv))
> 3011 return -EFAULT;
3012 return 0;
> 3013 }
3014 #endif
3015 return put_timespec64(&ts, userstamp);
3016 }
3017 EXPORT_SYMBOL(sock_gettstamp);
3018
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 55784 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-21 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-21 0:53 [net-next:master 254/261] net//core/sock.c:3007:23: error: expected '}' before ';' token kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).