tree:
git://git.infradead.org/users/hch/misc.git kernel_setsockopt
head: 8f2dd59cc0181c957fef3d700867ce9d51ee167b
commit: f7fa6070e761f3e00b46dac42bd9d550367e26a7 [/32] net: add sock_set_sndtimeo
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
e6658079aca6d971b4e9d7137a3a2ecbc9c34aec)
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout f7fa6070e761f3e00b46dac42bd9d550367e26a7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 <<):
> net/core/sock.c:758:19: warning: result of comparison of constant
36893488147419102 with expression of type 'unsigned int' is always true
[-Wtautological-constant-out-of-range-compare]
if (secs && secs <
MAX_SCHEDULE_TIMEOUT / HZ - 1)
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
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