Skip to content

Commit 0743fe4

Browse files
committed
testing: fix typo in struct_ops_autocreate
Signed-off-by: shun159 <[email protected]>
1 parent a3ac2c8 commit 0743fe4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
8 Bytes
Binary file not shown.
8 Bytes
Binary file not shown.

testdata/struct_ops_autocreate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ struct bpf_testmod_ops {
77
int data;
88
};
99

10-
__section("struct_ops/test_1") int foo(void) {
10+
__section("?struct_ops/test_1") int foo(void) {
1111
return 0;
1212
}
1313

14-
__section("struct_ops/test_1") int bar(void) {
14+
__section("?struct_ops/test_1") int bar(void) {
1515
return 0;
1616
}
1717

1818
__section(".struct_ops.link") struct bpf_testmod_ops testmod_ops = {
19-
.test_1 = (void *)foo,
19+
.test_1 = (void *)bar,
2020
};

0 commit comments

Comments
 (0)