Re: [PATCH net-next] samples/bpf: fix warnings in xdp_monitor_user

2017-10-01 Thread David Miller
From: Stephen Hemminger Date: Sun, 1 Oct 2017 14:07:34 -0700 > 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) >^~~ >

Re: [PATCH net-next] samples/bpf: fix warnings in xdp_monitor_user

2017-10-01 Thread Jesper Dangaard Brouer
On Sun, 1 Oct 2017 14:07:34 -0700 Stephen Hemminger wrote: > 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) >^~~ > sa

Re: [PATCH net-next] samples/bpf: fix warnings in xdp_monitor_user

2017-10-01 Thread Alexei Starovoitov
On Sun, Oct 01, 2017 at 02:07:34PM -0700, Stephen Hemminger wrote: > 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) >^~~

[PATCH net-next] samples/bpf: fix warnings in xdp_monitor_user

2017-10-01 Thread Stephen Hemminger
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