[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170501.164526.2280829777190467409.davem@davemloft.net>
Date: Mon, 01 May 2017 16:45:26 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: daniel@...earbox.net
Cc: netdev@...r.kernel.org
Subject: Re: more bpf samples build breakage...
From: Daniel Borkmann <daniel@...earbox.net>
Date: Mon, 01 May 2017 22:38:58 +0200
> BPF samples:
>
> [root@...c bpf]# make > /dev/null
> In file included from
> /root/cilium/net-next/samples/bpf/cookie_uid_helper_example.c:54:0:
> /root/cilium/net-next/samples/bpf/cookie_uid_helper_example.c: In
> function ‘prog_load’:
> /root/cilium/net-next/samples/bpf/cookie_uid_helper_example.c:119:5:
> warning: overflow in implicit constant conversion [-Woverflow]
> -32 + offsetof(struct stats, uid)),
> ^
> /root/cilium/net-next/samples/bpf/libbpf.h:135:12: note: in definition
> of macro ‘BPF_STX_MEM’
> .off = OFF, \
> ^
> /root/cilium/net-next/samples/bpf/cookie_uid_helper_example.c:121:5:
> warning: overflow in implicit constant conversion [-Woverflow]
> -32 + offsetof(struct stats, packets), 1),
> ^
> /root/cilium/net-next/samples/bpf/libbpf.h:155:12: note: in definition
> of macro ‘BPF_ST_MEM’
> .off = OFF, \
> ^
> /root/cilium/net-next/samples/bpf/cookie_uid_helper_example.c:129:5:
> warning: overflow in implicit constant conversion [-Woverflow]
> -32 + offsetof(struct stats, bytes)),
> ^
> /root/cilium/net-next/samples/bpf/libbpf.h:135:12: note: in definition
> of macro ‘BPF_STX_MEM’
> .off = OFF, \
> ^
> [root@...c bpf]#
>
> Above warning is from 51570a5ab2b7 ("A Sample of using socket
> cookie and uid for traffic monitoring"). I can see to send a
> fix for it.
Please do, thanks.
Powered by blists - more mailing lists