]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: fix warnings in xdp_monitor_user
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 1 Oct 2017 21:07:34 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Oct 2017 06:08:24 +0000 (23:08 -0700)
commit6fbe7700d0859a0669145caa64c959155545ecab
tree9d5a0e51d6ac5b8c10a35d3a3946997db3b37d81
parent0907236194f0559bdcc292d19336ee54d09994fa
samples/bpf: fix warnings in xdp_monitor_user

Make local functions static to fix

  HOSTCC  samples/bpf/xdp_monitor_user.o
samples/bpf/xdp_monitor_user.c:64:7: warning: no previous prototype for ‘gettime’ [-Wmissing-prototypes]
 __u64 gettime(void)
       ^~~~~~~
samples/bpf/xdp_monitor_user.c:209:6: warning: no previous prototype for ‘print_bpf_prog_info’ [-Wmissing-prototypes]
 void print_bpf_prog_info(void)
      ^~~~~~~~~~~~~~~~~~~
Fixes: 504cddaf6cf8 ("samples/bpf: xdp_monitor tool based on tracepoints")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/xdp_monitor_user.c