]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9c70db3bf3e47f04d3bf8a1089ed0afb7a37235
tree0dd8caba4edcc1dee3ba8c30b520d57ace8ced45
parent225fc1e05fbe53e3c5029039943a74bc905c6173
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