summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/bpf.c')
-rw-r--r--arch/s390/kernel/bpf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/s390/kernel/bpf.c b/arch/s390/kernel/bpf.c
new file mode 100644
index 000000000..713337fae
--- /dev/null
+++ b/arch/s390/kernel/bpf.c
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <asm/lowcore.h>
+#include <linux/btf.h>
+
+__bpf_kfunc_start_defs();
+
+__bpf_kfunc struct lowcore *bpf_get_lowcore(void)
+{
+ return get_lowcore();
+}
+
+__bpf_kfunc_end_defs();