Skip to content

Commit ce5a518

Browse files
captain5050anakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent fbeed93 commit ce5a518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/bpf_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define SEC(NAME) __attribute__((section(NAME), used))
3131

3232
#ifndef __always_inline
33-
#define __always_inline __attribute__((always_inline))
33+
#define __always_inline inline __attribute__((always_inline))
3434
#endif
3535
#ifndef __noinline
3636
#define __noinline __attribute__((noinline))

0 commit comments

Comments
 (0)