[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250107035058.818539-7-alistair@alistair23.me>
Date: Tue, 7 Jan 2025 13:50:53 +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 06/11] rust: helpers: Remove rbtree helper
Now that we support wrap-static-fns we no longer need the custom helper.
Signed-off-by: Alistair Francis <alistair@...stair23.me>
Tested-by: Dirk Behme <dirk.behme@...bosch.com>
---
rust/bindgen_static_functions | 2 ++
rust/helpers/helpers.c | 1 -
rust/helpers/rbtree.c | 9 ---------
3 files changed, 2 insertions(+), 10 deletions(-)
delete mode 100644 rust/helpers/rbtree.c
diff --git a/rust/bindgen_static_functions b/rust/bindgen_static_functions
index ded5b816f304..e464dc1f5682 100644
--- a/rust/bindgen_static_functions
+++ b/rust/bindgen_static_functions
@@ -13,3 +13,5 @@
--allowlist-function kunit_get_current_test
--allowlist-function kmap_local_page
+
+--allowlist-function rb_link_node
diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c
index 9e6c6c9c67d2..54c52ceab77a 100644
--- a/rust/helpers/helpers.c
+++ b/rust/helpers/helpers.c
@@ -16,7 +16,6 @@
#include "mutex.c"
#include "page.c"
#include "pid_namespace.c"
-#include "rbtree.c"
#include "refcount.c"
#include "security.c"
#include "signal.c"
diff --git a/rust/helpers/rbtree.c b/rust/helpers/rbtree.c
deleted file mode 100644
index 6d404b84a9b5..000000000000
--- a/rust/helpers/rbtree.c
+++ /dev/null
@@ -1,9 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#include <linux/rbtree.h>
-
-void rust_helper_rb_link_node(struct rb_node *node, struct rb_node *parent,
- struct rb_node **rb_link)
-{
- rb_link_node(node, parent, rb_link);
-}
--
2.47.1
Powered by blists - more mailing lists