[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250107035058.818539-11-alistair@alistair23.me>
Date: Tue, 7 Jan 2025 13:50:57 +1000
From: Alistair Francis <alistair@...stair23.me>
To: bhelgaas@...gle.com,
rust-for-linux@...r.kernel.org,
lukas@...ner.de,
gary@...yguo.net,
akpm@...ux-foundation.org,
tmgross@...ch.edu,
boqun.feng@...il.com,
ojeda@...nel.org,
linux-cxl@...r.kernel.org,
bjorn3_gh@...tonmail.com,
a.hindborg@...nel.org,
me@...enk.dev,
linux-kernel@...r.kernel.org,
aliceryhl@...gle.com,
alistair.francis@....com,
linux-pci@...r.kernel.org,
benno.lossin@...ton.me,
alex.gaynor@...il.com,
Jonathan.Cameron@...wei.com
Cc: alistair23@...il.com,
wilfred.mallawa@....com,
Alistair Francis <alistair@...stair23.me>,
Dirk Behme <dirk.behme@...bosch.com>
Subject: [PATCH v5 10/11] rust: helpers: Remove some task helpers
Now that we support wrap-static-fns we no longer need the custom helpers.
Signed-off-by: Alistair Francis <alistair@...stair23.me>
Tested-by: Dirk Behme <dirk.behme@...bosch.com>
---
rust/bindgen_static_functions | 3 +++
rust/helpers/task.c | 10 ----------
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/rust/bindgen_static_functions b/rust/bindgen_static_functions
index 9d6c44e277b5..8bc291a7a799 100644
--- a/rust/bindgen_static_functions
+++ b/rust/bindgen_static_functions
@@ -24,3 +24,6 @@
--allowlist-function spin_lock
--allowlist-function spin_unlock
--allowlist-function spin_trylock
+
+--allowlist-function get_task_struct
+--allowlist-function put_task_struct
diff --git a/rust/helpers/task.c b/rust/helpers/task.c
index 31c33ea2dce6..38a7765d9915 100644
--- a/rust/helpers/task.c
+++ b/rust/helpers/task.c
@@ -7,16 +7,6 @@ struct task_struct *rust_helper_get_current(void)
return current;
}
-void rust_helper_get_task_struct(struct task_struct *t)
-{
- get_task_struct(t);
-}
-
-void rust_helper_put_task_struct(struct task_struct *t)
-{
- put_task_struct(t);
-}
-
kuid_t rust_helper_task_uid(struct task_struct *task)
{
return task_uid(task);
--
2.47.1
Powered by blists - more mailing lists