[PATCH 03/13] rust: helpers: Remove build_bug helper
From: Alistair Francis
Date: Wed Nov 06 2024 - 21:09:34 EST
This doesn't seem to be required.
Signed-off-by: Alistair Francis <alistair.francis@xxxxxxx>
---
rust/helpers/build_bug.c | 9 ---------
rust/helpers/helpers.c | 1 -
2 files changed, 10 deletions(-)
delete mode 100644 rust/helpers/build_bug.c
diff --git a/rust/helpers/build_bug.c b/rust/helpers/build_bug.c
deleted file mode 100644
index e994f7b5928c0..0000000000000
--- a/rust/helpers/build_bug.c
+++ /dev/null
@@ -1,9 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#include <linux/export.h>
-#include <linux/errname.h>
-
-const char *rust_helper_errname(int err)
-{
- return errname(err);
-}
diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c
index 1df56294cad46..0f0c16c1e8149 100644
--- a/rust/helpers/helpers.c
+++ b/rust/helpers/helpers.c
@@ -9,7 +9,6 @@
#include "bug.c"
#include "build_assert.c"
-#include "build_bug.c"
#include "err.c"
#include "kunit.c"
#include "mutex.c"
--
2.47.0