aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2021-01-13 14:36:08 -0800
committerAndrii Nakryiko <andrii@kernel.org>2021-01-13 19:11:14 -0800
commitce5a518e9de53446f10d46fac98640f7ac026100 (patch)
treefc94357ac7a774ec6d57c4f4ad2eb823c56a4635 /tools/lib/bpf/bpf_helpers.h
parentMerge branch 'selftests/bpf: Some build fixes' (diff)
downloadlinux-dev-ce5a518e9de53446f10d46fac98640f7ac026100.tar.xz
linux-dev-ce5a518e9de53446f10d46fac98640f7ac026100.zip
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
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
-rw-r--r--tools/lib/bpf/bpf_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h
index 72b251110c4d..ae6c975e0b87 100644
--- a/tools/lib/bpf/bpf_helpers.h
+++ b/tools/lib/bpf/bpf_helpers.h
@@ -30,7 +30,7 @@
#define SEC(NAME) __attribute__((section(NAME), used))
#ifndef __always_inline
-#define __always_inline __attribute__((always_inline))
+#define __always_inline inline __attribute__((always_inline))
#endif
#ifndef __noinline
#define __noinline __attribute__((noinline))