projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff96e4
)
bpf: selftests: Fix bpf_cpumask_first_zero() kfunc prototype
author
Daniel Xu
<dxu@dxuuu.xyz>
Wed, 12 Jun 2024 15:58:28 +0000
(09:58 -0600)
committer
Alexei Starovoitov
<ast@kernel.org>
Wed, 12 Jun 2024 18:01:31 +0000
(11:01 -0700)
The prototype in progs/nested_trust_common.h is not in line with how the
actual kfuncs are defined in kernel/bpf/cpumask.c. This causes compilation
errors when kfunc prototypes are generated from BTF.
Fix by aligning with actual kfunc definitions.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link:
https://lore.kernel.org/r/437936a4e554b02e04566dd6e3f0a5d08370cc8c.1718207789.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/nested_trust_common.h
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/progs/nested_trust_common.h
b/tools/testing/selftests/bpf/progs/nested_trust_common.h
index
83d3393
..
1784b49
100644
(file)
--- a/
tools/testing/selftests/bpf/progs/nested_trust_common.h
+++ b/
tools/testing/selftests/bpf/progs/nested_trust_common.h
@@
-7,6
+7,6
@@
#include <stdbool.h>
bool bpf_cpumask_test_cpu(unsigned int cpu, const struct cpumask *cpumask) __ksym;
-
bool
bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
+
__u32
bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
#endif /* _NESTED_TRUST_COMMON_H */