Skip to content

Commit e528d1c

Browse files
Alexei Starovoitovborkmann
authored andcommitted
selftests/bpf: Modify a test to check global functions
Make two static functions in test_xdp_noinline.c global: before: processed 2790 insns after: processed 2598 insns Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 6db2d81 commit e528d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/bpf/progs/test_xdp_noinline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ u32 jhash(const void *key, u32 length, u32 initval)
8686
return c;
8787
}
8888

89-
static __attribute__ ((noinline))
89+
__attribute__ ((noinline))
9090
u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval)
9191
{
9292
a += initval;
@@ -96,7 +96,7 @@ u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval)
9696
return c;
9797
}
9898

99-
static __attribute__ ((noinline))
99+
__attribute__ ((noinline))
100100
u32 jhash_2words(u32 a, u32 b, u32 initval)
101101
{
102102
return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2));

0 commit comments

Comments
 (0)