summaryrefslogtreecommitdiffstats
path: root/rust/helpers/jump_label.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/jump_label.c')
-rw-r--r--rust/helpers/jump_label.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/helpers/jump_label.c b/rust/helpers/jump_label.c
new file mode 100644
index 000000000..7ca384e73
--- /dev/null
+++ b/rust/helpers/jump_label.c
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/*
+ * Copyright (C) 2024 Google LLC.
+ */
+
+#include <linux/jump_label.h>
+
+#ifndef CONFIG_JUMP_LABEL
+__rust_helper int rust_helper_static_key_count(struct static_key *key)
+{
+ return static_key_count(key);
+}
+#endif