tree:
git://git.infradead.org/users/hch/misc.git kernel_setsockopt
head: 43d0f0870df329db68ecbae8e699615ff0c009f1
commit: f7fa6070e761f3e00b46dac42bd9d550367e26a7 [6/32] net: add sock_set_sndtimeo
config: um-defconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout f7fa6070e761f3e00b46dac42bd9d550367e26a7
# save the attached .config to linux build tree
make ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/kernel.h:11:0,
from include/linux/unaligned/access_ok.h:5,
from arch/x86/include/asm/unaligned.h:9,
from net/core/sock.c:88:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0 is
always true [-Wtype-limits]
BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
^
include/linux/compiler.h:330:9: note: in definition of macro
'__compiletime_assert'
if (!(condition)) ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11:0,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:34,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:679,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/ip.h:16,
from include/net/ip.h:22,
from include/linux/errqueue.h:6,
from net/core/sock.c:91:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0 is
always true [-Wtype-limits]
(((unsigned long) (addr) >= FIXADDR_USER_START) &&
^
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro
'__access_ok_vsyscall'
__access_ok_vsyscall(addr, size) ||
^~~~~~~~~~~~~~~~~~~~
net/core/sock.c: In function 'sock_set_sndtimeo':
> net/core/sock.c:758:19: warning: comparison is always true due to
limited range of data type [-Wtype-limits]
if (secs && secs <
MAX_SCHEDULE_TIMEOUT / HZ - 1)
^
vim +758 net/core/sock.c
754
755 void sock_set_sndtimeo(struct sock *sk, unsigned int secs)
756 {
757 lock_sock(sk);
758 if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1)
759 sk->sk_sndtimeo = secs * HZ;
760 else
761 sk->sk_sndtimeo = MAX_SCHEDULE_TIMEOUT;
762 release_sock(sk);
763 }
764 EXPORT_SYMBOL(sock_set_sndtimeo);
765
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org