tools: bpftool: move p_err() and p_info() from main.h to common.c
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 3 Nov 2017 20:59:07 +0000 (13:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:28:51 +0000 (22:28 +0900)
commit0b1c27db12fd338ed912fec18f5cc02d7bd4e54e
tree0dd8caba4edcc1dee3ba8c30b520d57ace8ced45
parent8a3b718ac2c29abcba8e12636710cff3cee8c01b
tools: bpftool: move p_err() and p_info() from main.h to common.c

The two functions were declared as static inline in a header file. There
is no particular reason why they should be inlined, they just happened to
remain in the same header file when they were turned from macros to
functions in a precious commit.

Make them non-inlined functions and move them to common.c file instead.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/bpf/bpftool/common.c
tools/bpf/bpftool/main.h