xref: /linux/tools/testing/selftests/net/sample_ret0.bpf.c (revision 01a9664e0d9f8f8d5c0c7c33be2aae1284c2fc05)
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */
2 
3 #define SEC(name) __attribute__((section(name), used))
4 
5 /* Sample program which should always load for testing control paths. */
6 SEC("xdp")
7 int func()
8 {
9 	return 0;
10 }
11