]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, libbpf: Avoid unused function warning on bpf_tail_call_static
authorIan Rogers <irogers@google.com>
Wed, 13 Jan 2021 22:36:08 +0000 (14:36 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 14 Jan 2021 03:11:14 +0000 (19:11 -0800)
commit8fe2624e772abd3a5056ab5d578beaede467e9e4
treefc94357ac7a774ec6d57c4f4ad2eb823c56a4635
parentb379edf43cd1bcebe8d17ef1da6826cb3ef8022e
bpf, libbpf: Avoid unused function warning on bpf_tail_call_static

Add inline to __always_inline making it match the linux/compiler.h.
Adding this avoids an unused function warning on bpf_tail_call_static
when compining with -Wall.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210113223609.3358812-1-irogers@google.com
tools/lib/bpf/bpf_helpers.h