net: bpf: fix compiler warnings in test_bpf
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 19 Sep 2014 20:53:51 +0000 (13:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 20:21:30 +0000 (16:21 -0400)
commit25ee7327d04bc3ff41a7a5ac42d74226f8d60ac6
treed56b2be119d01a9c34f4aacb51d6cf6daa7b5f61
parentde5df63228fcfbd5bb7fd883774c18fec9e61f12
net: bpf: fix compiler warnings in test_bpf

old gcc 4.2 used by avr32 architecture produces warnings:

lib/test_bpf.c:1741: warning: integer constant is too large for 'long' type
lib/test_bpf.c:1741: warning: integer constant is too large for 'long' type
lib/test_bpf.c: In function '__run_one':
lib/test_bpf.c:1897: warning: 'ret' may be used uninitialized in this function

silence these warnings.

Fixes: 02ab695bb37e ("net: filter: add "load 64-bit immediate" eBPF instruction")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c