summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_subprogs_unused.c
blob: bc49e050d34242add021c38ede1067fee23ce359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_core_read.h>

const char LICENSE[] SEC("license") = "GPL";

__attribute__((unused)) __noinline int unused1(int x)
{
	return x + 1;
}

static __attribute__((unused)) __noinline int unused2(int x)
{
	return x + 2;
}

SEC("raw_tp/sys_enter")
int main_prog(void *ctx)
{
	return 0;
}