diff options
| author | David Vernet <[email protected]> | 2023-02-01 17:30:15 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-02-01 23:25:14 +0000 |
| commit | 400031e05adfcef9e80eca80bdfc3f4b63658be4 (patch) | |
| tree | fcac625bc35298cd1182e4415fea360573b69b8b /tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c | |
| parent | bpf: Document usage of the new __bpf_kfunc macro (diff) | |
| download | kernel-400031e05adfcef9e80eca80bdfc3f4b63658be4.tar.gz kernel-400031e05adfcef9e80eca80bdfc3f4b63658be4.zip | |
bpf: Add __bpf_kfunc tag to all kfuncs
Now that we have the __bpf_kfunc tag, we should use add it to all
existing kfuncs to ensure that they'll never be elided in LTO builds.
Signed-off-by: David Vernet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c')
| -rw-r--r-- | tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c b/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c index 5085fea3cac5..46500636d8cd 100644 --- a/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c +++ b/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c @@ -59,7 +59,7 @@ bpf_testmod_test_struct_arg_5(void) { return bpf_testmod_test_struct_arg_result; } -noinline void +__bpf_kfunc void bpf_testmod_test_mod_kfunc(int i) { *(int *)this_cpu_ptr(&bpf_testmod_ksym_percpu) = i; |
