* [dborkman:pr/getname 8/10] net/ipv4/af_inet.c:784:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'?
@ 2020-05-15 17:16 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-15 17:16 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3082 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/getname
head: 9847f84318d0ff763c0e52bd2095651f2ae3e8b9
commit: e2f4f09309b41e70841ab4a38eff4dc9925a6f76 [8/10] bpf: add get{peer,sock}name attach types for sock_addr
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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 e2f4f09309b41e70841ab4a38eff4dc9925a6f76
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
net/ipv4/af_inet.c: In function 'inet_getname':
>> net/ipv4/af_inet.c:784:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'? [-Werror=implicit-function-declaration]
784 | BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| BPF_CGROUP_RUN_PROG_SYSCTL
cc1: some warnings being treated as errors
--
net/ipv6/af_inet6.c: In function 'inet6_getname':
>> net/ipv6/af_inet6.c:536:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'? [-Werror=implicit-function-declaration]
536 | BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| BPF_CGROUP_RUN_PROG_SYSCTL
cc1: some warnings being treated as errors
vim +784 net/ipv4/af_inet.c
757
758 /*
759 * This does both peername and sockname.
760 */
761 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
762 int peer)
763 {
764 struct sock *sk = sock->sk;
765 struct inet_sock *inet = inet_sk(sk);
766 DECLARE_SOCKADDR(struct sockaddr_in *, sin, uaddr);
767
768 sin->sin_family = AF_INET;
769 if (peer) {
770 if (!inet->inet_dport ||
771 (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_SYN_SENT)) &&
772 peer == 1))
773 return -ENOTCONN;
774 sin->sin_port = inet->inet_dport;
775 sin->sin_addr.s_addr = inet->inet_daddr;
776 } else {
777 __be32 addr = inet->inet_rcv_saddr;
778 if (!addr)
779 addr = inet->inet_saddr;
780 sin->sin_port = inet->inet_sport;
781 sin->sin_addr.s_addr = addr;
782 }
783 if (cgroup_bpf_enabled)
> 784 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, (struct sockaddr *)sin,
785 peer ? BPF_CGROUP_INET4_GETPEERNAME :
786 BPF_CGROUP_INET4_GETSOCKNAME,
787 NULL);
788 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
789 return sizeof(*sin);
790 }
791 EXPORT_SYMBOL(inet_getname);
792
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 11056 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-15 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-15 17:16 [dborkman:pr/getname 8/10] net/ipv4/af_inet.c:784:3: error: implicit declaration of function 'BPF_CGROUP_RUN_SA_PROG_LOCK'; did you mean 'BPF_CGROUP_RUN_PROG_SYSCTL'? kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.