tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: de2e69cfe54a8f2ed4b75f09d3110c514f45d38e
commit: 8c918ffbbad49454ed26c53eb1b90bf98bb5e394 [8847/10009] net: remove
compat_sock_common_{get,set}sockopt
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 8c918ffbbad49454ed26c53eb1b90bf98bb5e394
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD de2e69cfe54a8f2ed4b75f09d3110c514f45d38e builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
net/core/sock.c: In function 'sock_common_getsockopt':
> net/core/sock.c:3203:6: error: implicit declaration of function
'in_compat_syscal'; did you mean 'in_compat_syscall'?
[-Werror=implicit-function-declaration]
3203 | if (in_compat_syscal()
&& sk->sk_prot->compat_getsockopt)
| ^~~~~~~~~~~~~~~~
| in_compat_syscall
cc1: some warnings being treated as errors
vim +3203 net/core/sock.c
3189
3190 /*
3191 * Get a socket option on an socket.
3192 *
3193 * FIX: POSIX 1003.1g is very ambiguous here. It states that
3194 * asynchronous errors should be reported by getsockopt. We assume
3195 * this means if you specify SO_ERROR (otherwise whats the point of it).
3196 */
3197 int sock_common_getsockopt(struct socket *sock, int level, int optname,
3198 char __user *optval, int __user *optlen)
3199 {
3200 struct sock *sk = sock->sk;
3201
3202 #ifdef CONFIG_COMPAT
3203 if (in_compat_syscal() &&
sk->sk_prot->compat_getsockopt)
3204 return
sk->sk_prot->compat_getsockopt(sk, level, optname,
3205 optval, optlen);
3206 #endif
3207 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen);
3208 }
3209 EXPORT_SYMBOL(sock_common_getsockopt);
3210
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org