xref: /linux/tools/testing/selftests/bpf/progs/bad_struct_ops2.c (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/bpf.h>
4 #include <bpf/bpf_helpers.h>
5 
6 char _license[] SEC("license") = "GPL";
7 
8 /* This is an unused struct_ops program, it lacks corresponding
9  * struct_ops map, which provides attachment information.
10  * W/o additional configuration attempt to load such
11  * BPF object file would fail.
12  */
13 SEC("struct_ops/foo")
14 void foo(void) {}
15