Hi Chenbo, [auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Chenbo-Feng/Two-Helper-function-about-socket-information/20170206-102835 config: x86_64-randconfig-x014-201706 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): net/core/filter.c: In function '____bpf_get_socket_uid': >> net/core/filter.c:2618:29: error: 'net' undeclared (first use in this >> function) kuid_t kuid = sock_net_uid(net, sk && sk_fullsock(sk) ? ^~~ net/core/filter.c:2618:29: note: each undeclared identifier is reported only once for each function it appears in vim +/net +2618 net/core/filter.c 2612 .arg1_type = ARG_PTR_TO_CTX, 2613 }; 2614 2615 BPF_CALL_1(bpf_get_socket_uid, struct sk_buff *, skb) 2616 { 2617 struct sock *sk = skb->sk; > 2618 kuid_t kuid = sock_net_uid(net, sk && sk_fullsock(sk) ? 2619 sk : NULL); 2620 return (u32)kuid.val; 2621 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip