summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2024-09-30 12:28:07 +0300
committerJerome Brunet <jbrunet@baylibre.com>2024-09-30 12:28:07 +0300
commit3fd6c59042dbba50391e30862beac979491145fe (patch)
tree63d729254efdf6446d4d4a05e7a8a0dd803eedec /rust/helpers/build_bug.c
parent1d7ec62374bf049349c47f07f0b95a6524bb1b98 (diff)
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
downloadlinux-3fd6c59042dbba50391e30862beac979491145fe.tar.xz
Merge tag 'v6.12-rc1' into clk-meson-next
Linux 6.12-rc1
Diffstat (limited to 'rust/helpers/build_bug.c')
-rw-r--r--rust/helpers/build_bug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/helpers/build_bug.c b/rust/helpers/build_bug.c
new file mode 100644
index 000000000000..e994f7b5928c
--- /dev/null
+++ b/rust/helpers/build_bug.c
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/export.h>
+#include <linux/errname.h>
+
+const char *rust_helper_errname(int err)
+{
+ return errname(err);
+}