xref: /linux/tools/testing/selftests/bpf/progs/test_subprogs_unused.c (revision 24bce201d79807b668bf9d9e0aca801c5c0d5f78)
1 #include "vmlinux.h"
2 #include <bpf/bpf_helpers.h>
3 #include <bpf/bpf_core_read.h>
4 
5 const char LICENSE[] SEC("license") = "GPL";
6 
7 __attribute__((unused)) __noinline int unused1(int x)
8 {
9 	return x + 1;
10 }
11 
12 static __attribute__((unused)) __noinline int unused2(int x)
13 {
14 	return x + 2;
15 }
16 
17 SEC("raw_tp/sys_enter")
18 int main_prog(void *ctx)
19 {
20 	return 0;
21 }
22