Hi Lawrence, [auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Lawrence-Brakmo/bpf-BPF-cgroup-support-for-sock_ops/20170629-203719 config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=tile All warnings (new ones prefixed by >>): In file included from include/linux/netfilter/ipset/pfxlen.h:6:0, from net/netfilter/ipset/pfxlen.c:2: include/net/tcp.h: In function 'tcp_call_bpf': >> include/net/tcp.h:2047:8: warning: the address of 'sock_ops' will always >> evaluate as 'true' [-Waddress] vim +2047 include/net/tcp.h 2031 * program loaded). 2032 */ 2033 #ifdef CONFIG_BPF 2034 static inline int tcp_call_bpf(struct sock *sk, bool is_req_sock, int op) 2035 { 2036 struct bpf_sock_ops_kern sock_ops; 2037 int ret; 2038 2039 if (!is_req_sock) 2040 sock_owned_by_me(sk); 2041 2042 memset(&sock_ops, 0, sizeof(sock_ops)); 2043 sock_ops.sk = sk; 2044 sock_ops.is_req_sock = is_req_sock; 2045 sock_ops.op = op; 2046 > 2047 ret = BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); 2048 if (ret == 0) 2049 ret = sock_ops.reply; 2050 else 2051 ret = -1; 2052 return ret; 2053 } 2054 #else 2055 static inline int tcp_call_bpf(struct sock *sk, bool is_req_sock, int op) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip