summaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/bug.c')
-rw-r--r--rust/helpers/bug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/helpers/bug.c b/rust/helpers/bug.c
new file mode 100644
index 000000000000..e2afbad23dcd
--- /dev/null
+++ b/rust/helpers/bug.c
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/bug.h>
+
+__noreturn void rust_helper_BUG(void)
+{
+ BUG();
+}
+EXPORT_SYMBOL_GPL(rust_helper_BUG);