[PATCH 06/13] rust: helpers: Remove mutex helper

From: Alistair Francis
Date: Wed Nov 06 2024 - 21:10:19 EST


This doesn't seem to be required at all.

Signed-off-by: Alistair Francis <alistair.francis@xxxxxxx>
---
rust/helpers/helpers.c | 1 -
rust/helpers/mutex.c | 15 ---------------
2 files changed, 16 deletions(-)
delete mode 100644 rust/helpers/mutex.c

diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c
index 875e1fed81c24..61ace53675c04 100644
--- a/rust/helpers/helpers.c
+++ b/rust/helpers/helpers.c
@@ -9,7 +9,6 @@

#include "bug.c"
#include "build_assert.c"
-#include "mutex.c"
#include "page.c"
#include "rbtree.c"
#include "refcount.c"
diff --git a/rust/helpers/mutex.c b/rust/helpers/mutex.c
deleted file mode 100644
index a17ca8cdb50ca..0000000000000
--- a/rust/helpers/mutex.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#include <linux/export.h>
-#include <linux/mutex.h>
-
-void rust_helper_mutex_lock(struct mutex *lock)
-{
- mutex_lock(lock);
-}
-
-void rust_helper___mutex_init(struct mutex *mutex, const char *name,
- struct lock_class_key *key)
-{
- __mutex_init(mutex, name, key);
-}
--
2.47.0