summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/sample_ret0.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/bpf/sample_ret0.c')
-rw-r--r--tools/testing/selftests/bpf/sample_ret0.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/sample_ret0.c b/tools/testing/selftests/bpf/sample_ret0.c
new file mode 100644
index 000000000000..fec99750d6ea
--- /dev/null
+++ b/tools/testing/selftests/bpf/sample_ret0.c
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */
+
+/* Sample program which should always load for testing control paths. */
+int func()
+{
+ return 0;
+}