OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbeed93
)
bpf, libbpf: Avoid unused function warning on bpf_tail_call_static
author
Ian Rogers
<irogers@google.com>
Wed, 13 Jan 2021 22:36:08 +0000
(14:36 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Thu, 14 Jan 2021 03:11:14 +0000
(19:11 -0800)
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
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/bpf_helpers.h
b/tools/lib/bpf/bpf_helpers.h
index
72b2511
..
ae6c975
100644
(file)
--- 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))