Skip to contentSkip to conversation

Allow inlining C helpers into Rust when using LTO

PATCH Applied Alice Ryhl 18 participants 65 messages Jan 5 – Mar 10

Subsystems (17)
Memory management VFS USB Block layer +13 more subsystems
lore
Share & tools
lore

Alice Ryhl

author maintainer
#0 lore raw

v2 cover Allow inlining C helpers into Rust when using LTO

This patch series adds __rust_helper to every single rust helper. The patches do not depend on each other, so maintainers please go ahead and pick up any patches relevant to your subsystem! Or provide your Acked-by so that Miguel can pick them up.

These changes were generated by adding __rust_helper and running ClangFormat. Unrelated formatting changes were removed manually.

Why is __rust_helper needed?
============================

Currently, C helpers cannot be inlined into Rust even when using LTO because LLVM detects slightly different options on the codegen units.

* LLVM doesn't want to inline functions compiled with -fno-delete-null-pointer-checks with code compiled without. The C CGUs all have this enabled and Rust CGUs don't. Inlining is okay since this is one of the hardening features that does not change the ABI, and we shouldn't have null pointer dereferences in these helpers.

* LLVM doesn't want to inline functions with different list of builtins. C side has -fno-builtin-wcslen; wcslen is not a Rust builtin, so they should be compatible, but LLVM does not perform inlining due to attributes mismatch.

* clang and Rust doesn't have the exact target string. Clang generates +cmov,+cx8,+fxsr but Rust doesn't enable them (in fact, Rust will complain if -Ctarget-feature=+cmov,+cx8,+fxsr is used). x86-64 always enable these features, so they are in fact the same target string, but LLVM doesn't understand this and so inlining is inhibited. This can be bypassed with --ignore-tti-inline-compatible, but this is a hidden option.

(This analysis was written by Gary Guo.)

How is this fixed?
==================

To fix this we need to add __always_inline to all helpers when compiling with LTO. However, it should not be added when running bindgen as bindgen will ignore functions marked inline. To achieve this, we are using a #define called __rust_helper that is defined differently depending on whether bindgen is running or not.

Note that __rust_helper is currently always #defined to nothing. Changing it to __always_inline will happen separately in another patch series.

---
Changes in v2:
- Pick up Reviewed-by: Boqun Feng <[email protected]>, Gary Guo <[email protected]>
- Update formatting in mm and slab patches.
- Add new helpers in files uaccess, pwm, and time.
- Drop any patches that have been merged.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alice Ryhl (27):
rust: barrier: add __rust_helper to helpers
rust: blk: add __rust_helper to helpers
rust: bug: add __rust_helper to helpers
rust: clk: add __rust_helper to helpers
rust: completion: add __rust_helper to helpers
rust: cpu: add __rust_helper to helpers
rust: cred: add __rust_helper to helpers
rust: err: add __rust_helper to helpers
rust: jump_label: add __rust_helper to helpers
rust: maple_tree: add __rust_helper to helpers
rust: mm: add __rust_helper to helpers
rust: of: add __rust_helper to helpers
rust: processor: add __rust_helper to helpers
rust: pwm: add __rust_helper to helpers
rust: rbtree: add __rust_helper to helpers
rust: rcu: add __rust_helper to helpers
rust: refcount: add __rust_helper to helpers
rust: security: add __rust_helper to helpers
rust: slab: add __rust_helper to helpers
rust: sync: add __rust_helper to helpers
rust: task: add __rust_helper to helpers
rust: time: add __rust_helper to helpers
rust: uaccess: add __rust_helper to helpers
rust: usb: add __rust_helper to helpers
rust: wait: add __rust_helper to helpers
rust: workqueue: add __rust_helper to helpers
rust: xarray: add __rust_helper to helpers

 rust/helpers/barrier.c    |  6 +++---
 rust/helpers/blk.c        |  4 ++--
 rust/helpers/bug.c        |  4 ++--
 rust/helpers/build_bug.c  |  2 +-
 rust/helpers/clk.c        | 24 +++++++++++++-----------
 rust/helpers/completion.c |  2 +-
 rust/helpers/cpu.c        |  2 +-
 rust/helpers/cred.c       |  4 ++--
 rust/helpers/err.c        |  6 +++---
 rust/helpers/jump_label.c |  2 +-
 rust/helpers/maple_tree.c |  3 ++-
 rust/helpers/mm.c         | 20 ++++++++++----------
 rust/helpers/mutex.c      | 13 +++++++------
 rust/helpers/of.c         |  2 +-
 rust/helpers/page.c       |  9 +++++----
 rust/helpers/processor.c  |  2 +-
 rust/helpers/pwm.c        |  6 +++---
 rust/helpers/rbtree.c     |  9 +++++----
 rust/helpers/rcu.c        |  4 ++--
 rust/helpers/refcount.c   | 10 +++++-----
 rust/helpers/security.c   | 26 +++++++++++++++-----------
 rust/helpers/signal.c     |  2 +-
 rust/helpers/slab.c       |  4 ++--
 rust/helpers/spinlock.c   | 13 +++++++------
 rust/helpers/sync.c       |  4 ++--
 rust/helpers/task.c       | 24 ++++++++++++------------
 rust/helpers/time.c       | 14 +++++++-------
 rust/helpers/uaccess.c    | 10 ++++++----
 rust/helpers/usb.c        |  3 ++-
 rust/helpers/vmalloc.c    |  2 +-
 rust/helpers/wait.c       |  2 +-
 rust/helpers/workqueue.c  |  8 +++++---
 rust/helpers/xarray.c     | 10 +++++-----
 33 files changed, 136 insertions(+), 120 deletions(-)

---
base-commit: 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
change-id: 20251202-define-rust-helper-f7b531813007

Best regards,

Signature · 1 line
Alice Ryhl <[email protected]>
author maintainer
#1 lore raw

PATCH v2 1/27 rust: barrier: add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
Cc: Peter Zijlstra <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Elle Rhumsaa <[email protected]>

---
 rust/helpers/barrier.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
rust/helpers/barrier.c +3 -3
index cdf28ce8e5116728c97e24893cf12ef41578d3ac..fed8853745c83639c32f79335e40b9494db11e98 100644
@@ -2,17 +2,17 @@
 
 #include <asm/barrier.h>
 
-void rust_helper_smp_mb(void)
+__rust_helper void rust_helper_smp_mb(void)
 {
 	smp_mb();
 }
 
-void rust_helper_smp_wmb(void)
+__rust_helper void rust_helper_smp_wmb(void)
 {
 	smp_wmb();
 }
 
-void rust_helper_smp_rmb(void)
+__rust_helper void rust_helper_smp_rmb(void)
 {
 	smp_rmb();
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#2 lore raw

[tip: locking/core] rust: barrier: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     aa574e0f21a6e7a28e4b8794ad4238d3bfd4f9df
Gitweb:        https://git.kernel.org/tip/aa574e0f21a6e7a28e4b8794ad4238d3bfd4f9df
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:14 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00

rust: barrier: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/barrier.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
rust/helpers/barrier.c +3 -3
index cdf28ce..fed8853 100644
@@ -2,17 +2,17 @@
 
 #include <asm/barrier.h>
 
-void rust_helper_smp_mb(void)
+__rust_helper void rust_helper_smp_mb(void)
 {
 	smp_mb();
 }
 
-void rust_helper_smp_wmb(void)
+__rust_helper void rust_helper_smp_wmb(void)
 {
 	smp_wmb();
 }
 
-void rust_helper_smp_rmb(void)
+__rust_helper void rust_helper_smp_rmb(void)
 {
 	smp_rmb();
 }
author maintainer
#3 lore raw

PATCH v2 2/27 rust: blk: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Andreas Hindborg <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: [email protected]

---
 rust/helpers/blk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/blk.c +2 -2
index cc9f4e6a2d2346eb2814104cce706755ba135e06..20c512e46a7a5fd126d092a5b9f8742a1deac9ff 100644
@@ -3,12 +3,12 @@
 #include <linux/blk-mq.h>
 #include <linux/blkdev.h>
 
-void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
+__rust_helper void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
 {
 	return blk_mq_rq_to_pdu(rq);
 }
 
-struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
+__rust_helper struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
 {
 	return blk_mq_rq_from_pdu(pdu);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#5 lore raw

[tip: locking/core] rust: blk: Add __rust_helper to helpers

In reply to Alice Ryhl
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     71a4d13fa1cf2b7a4f45a6ee41548c27783f7940
Gitweb:        https://git.kernel.org/tip/71a4d13fa1cf2b7a4f45a6ee41548c27783f7940
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:15 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00

rust: blk: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/blk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/blk.c +2 -2
index cc9f4e6..20c512e 100644
@@ -3,12 +3,12 @@
 #include <linux/blk-mq.h>
 #include <linux/blkdev.h>
 
-void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
+__rust_helper void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
 {
 	return blk_mq_rq_to_pdu(rq);
 }
 
-struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
+__rust_helper struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
 {
 	return blk_mq_rq_from_pdu(pdu);
 }
author maintainer
#6 lore raw

PATCH v2 3/27 rust: bug: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: FUJITA Tomonori <[email protected]>
Cc: Miguel Ojeda <[email protected]>

---
 rust/helpers/bug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/bug.c +2 -2
index a62c96f507d1c16cacc462199e390857b8afec28..b51e607725785f540dc46156630ca848dd0de491 100644
@@ -2,12 +2,12 @@
 
 #include <linux/bug.h>
 
-__noreturn void rust_helper_BUG(void)
+__rust_helper __noreturn void rust_helper_BUG(void)
 {
 	BUG();
 }
 
-bool rust_helper_WARN_ON(bool cond)
+__rust_helper bool rust_helper_WARN_ON(bool cond)
 {
 	return WARN_ON(cond);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#7 lore raw

PATCH v2 4/27 rust: clk: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Michael Turquette <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: [email protected]

---
 rust/helpers/clk.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)
rust/helpers/clk.c +13 -11
index 6d04372c9f3bbc4355c86eda5b1ebd7576d26442..15fd7e469cddf2e10d9e996c5055c7afb219e68c 100644
@@ -7,60 +7,62 @@
  * CONFIG_HAVE_CLK or CONFIG_HAVE_CLK_PREPARE aren't set.
  */
 #ifndef CONFIG_HAVE_CLK
-struct clk *rust_helper_clk_get(struct device *dev, const char *id)
+__rust_helper struct clk *rust_helper_clk_get(struct device *dev,
+					      const char *id)
 {
 	return clk_get(dev, id);
 }
 
-void rust_helper_clk_put(struct clk *clk)
+__rust_helper void rust_helper_clk_put(struct clk *clk)
 {
 	clk_put(clk);
 }
 
-int rust_helper_clk_enable(struct clk *clk)
+__rust_helper int rust_helper_clk_enable(struct clk *clk)
 {
 	return clk_enable(clk);
 }
 
-void rust_helper_clk_disable(struct clk *clk)
+__rust_helper void rust_helper_clk_disable(struct clk *clk)
 {
 	clk_disable(clk);
 }
 
-unsigned long rust_helper_clk_get_rate(struct clk *clk)
+__rust_helper unsigned long rust_helper_clk_get_rate(struct clk *clk)
 {
 	return clk_get_rate(clk);
 }
 
-int rust_helper_clk_set_rate(struct clk *clk, unsigned long rate)
+__rust_helper int rust_helper_clk_set_rate(struct clk *clk, unsigned long rate)
 {
 	return clk_set_rate(clk, rate);
 }
 #endif
 
 #ifndef CONFIG_HAVE_CLK_PREPARE
-int rust_helper_clk_prepare(struct clk *clk)
+__rust_helper int rust_helper_clk_prepare(struct clk *clk)
 {
 	return clk_prepare(clk);
 }
 
-void rust_helper_clk_unprepare(struct clk *clk)
+__rust_helper void rust_helper_clk_unprepare(struct clk *clk)
 {
 	clk_unprepare(clk);
 }
 #endif
 
-struct clk *rust_helper_clk_get_optional(struct device *dev, const char *id)
+__rust_helper struct clk *rust_helper_clk_get_optional(struct device *dev,
+						       const char *id)
 {
 	return clk_get_optional(dev, id);
 }
 
-int rust_helper_clk_prepare_enable(struct clk *clk)
+__rust_helper int rust_helper_clk_prepare_enable(struct clk *clk)
 {
 	return clk_prepare_enable(clk);
 }
 
-void rust_helper_clk_disable_unprepare(struct clk *clk)
+__rust_helper void rust_helper_clk_disable_unprepare(struct clk *clk)
 {
 	clk_disable_unprepare(clk);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#9 lore raw

PATCH v2 5/27 rust: completion: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Benno Lossin <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Miguel Ojeda <[email protected]>

---
 rust/helpers/completion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/completion.c +1 -1
index b2443262a2aed30db0084efa00b140d4d5929bf0..0126767cc3bebd56db706048b8bc07c6788de5e2 100644
@@ -2,7 +2,7 @@
 
 #include <linux/completion.h>
 
-void rust_helper_init_completion(struct completion *x)
+__rust_helper void rust_helper_init_completion(struct completion *x)
 {
 	init_completion(x);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#10 lore raw

[tip: locking/core] rust: completion: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     1c7a6f48f7eeb3014584d2fc55fc67f0cbaeef69
Gitweb:        https://git.kernel.org/tip/1c7a6f48f7eeb3014584d2fc55fc67f0cbaeef69
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:18 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00

rust: completion: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/completion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/completion.c +1 -1
index b244326..0126767 100644
@@ -2,7 +2,7 @@
 
 #include <linux/completion.h>
 
-void rust_helper_init_completion(struct completion *x)
+__rust_helper void rust_helper_init_completion(struct completion *x)
 {
 	init_completion(x);
 }
author maintainer
#11 lore raw

PATCH v2 6/27 rust: cpu: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>

---
 rust/helpers/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/cpu.c +1 -1
index 824e0adb19d4c988a6d5974f3ed94e6708dd534f..5759349b2c88b483f445ea03ed92d174e16b5959 100644
@@ -2,7 +2,7 @@
 
 #include <linux/smp.h>
 
-unsigned int rust_helper_raw_smp_processor_id(void)
+__rust_helper unsigned int rust_helper_raw_smp_processor_id(void)
 {
 	return raw_smp_processor_id();
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#12 lore raw

[tip: locking/core] rust: cpu: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     9f658bd5378d5c357d5eeb1e699f1504a7498dbf
Gitweb:        https://git.kernel.org/tip/9f658bd5378d5c357d5eeb1e699f1504a7498dbf
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:19 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00

rust: cpu: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/cpu.c +1 -1
index 824e0ad..5759349 100644
@@ -2,7 +2,7 @@
 
 #include <linux/smp.h>
 
-unsigned int rust_helper_raw_smp_processor_id(void)
+__rust_helper unsigned int rust_helper_raw_smp_processor_id(void)
 {
 	return raw_smp_processor_id();
 }
author maintainer
#13 lore raw

PATCH v2 7/27 rust: cred: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Paul Moore <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: [email protected]

---
 rust/helpers/cred.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/cred.c +2 -2
index fde7ae20cdd19f04ac5f28808586c65de6b72f09..a56a7b7536232733dcdc640f09f8f2537e69d75e 100644
@@ -2,12 +2,12 @@
 
 #include <linux/cred.h>
 
-const struct cred *rust_helper_get_cred(const struct cred *cred)
+__rust_helper const struct cred *rust_helper_get_cred(const struct cred *cred)
 {
 	return get_cred(cred);
 }
 
-void rust_helper_put_cred(const struct cred *cred)
+__rust_helper void rust_helper_put_cred(const struct cred *cred)
 {
 	put_cred(cred);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
maintainer Acked-by on v2 7/27
#14 lore raw

Re: [PATCH v2 07/27] rust: cred: add __rust_helper to helpers

Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 7 lines

---
Cc: Paul Moore <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: [email protected]

---
 rust/helpers/cred.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
paul-moore.com
maintainer
#15 lore raw

Re: [PATCH v2 07/27] rust: cred: add __rust_helper to helpers

Quoted 16 lines · Paul Moore
Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 7 lines

---
Cc: Paul Moore <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: [email protected]

---
 rust/helpers/cred.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 1 line

Ooops, sorry, I just saw that these were okay to merge into the various subsystem trees. Merged into lsm/dev, thanks.

Signature · 1 line
paul-moore.com
author maintainer
#16 lore raw

Re: [PATCH v2 07/27] rust: cred: add __rust_helper to helpers

Quoted 18 lines · Paul Moore
Quoted 16 lines · Paul Moore
Quoted 13 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Paul Moore <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: [email protected]

---
 rust/helpers/cred.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line

Ooops, sorry, I just saw that these were okay to merge into the various subsystem trees. Merged into lsm/dev, thanks.

Thanks!

author maintainer
#17 lore raw

PATCH v2 8/27 rust: err: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
 rust/helpers/build_bug.c | 2 +-
 rust/helpers/err.c       | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
rust/helpers/build_bug.c +1 -1
index 44e5794880373e5b4c3e9de5677d8e03ccd4a2be..14dbc55bb539589fd822ac8777b3fdaccfee7897 100644
@@ -2,7 +2,7 @@
 
 #include <linux/errname.h>
 
-const char *rust_helper_errname(int err)
+__rust_helper const char *rust_helper_errname(int err)
 {
 	return errname(err);
 }
rust/helpers/err.c +3 -3
index 544c7cb8663283edbe202318e5bca870708546f3..2872158e379383d592af687991115a0d223c3898 100644
@@ -2,17 +2,17 @@
 
 #include <linux/err.h>
 
-__force void *rust_helper_ERR_PTR(long err)
+__rust_helper __force void *rust_helper_ERR_PTR(long err)
 {
 	return ERR_PTR(err);
 }
 
-bool rust_helper_IS_ERR(__force const void *ptr)
+__rust_helper bool rust_helper_IS_ERR(__force const void *ptr)
 {
 	return IS_ERR(ptr);
 }
 
-long rust_helper_PTR_ERR(__force const void *ptr)
+__rust_helper long rust_helper_PTR_ERR(__force const void *ptr)
 {
 	return PTR_ERR(ptr);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#18 lore raw

PATCH v2 9/27 rust: jump_label: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Peter Zijlstra <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ard Biesheuvel <[email protected]>

---
 rust/helpers/jump_label.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/jump_label.c +1 -1
index fc1f1e0df08e79c0f06ac46cb6729a08deb7bd41..7ca384e73121820d882fde645a80cf718e6d9fbd 100644
@@ -7,7 +7,7 @@
 #include <linux/jump_label.h>
 
 #ifndef CONFIG_JUMP_LABEL
-int rust_helper_static_key_count(struct static_key *key)
+__rust_helper int rust_helper_static_key_count(struct static_key *key)
 {
 	return static_key_count(key);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
#19 lore raw

Re: [PATCH v2 09/27] rust: jump_label: add __rust_helper to helpers

Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 6 lines

---
Cc: Peter Zijlstra <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ard Biesheuvel <[email protected]>

This one is the last one -- I guess if new ones were added during the merge window, we can have a v3 next cycle with this one plus any new ones.

Otherwise, I guess I will end up applying it after -rc1 -- and Acked-by would be nice.

Thanks!

Cheers,
Miguel

maintainer Acked-by
#20 lore raw

Re: [PATCH v2 09/27] rust: jump_label: add __rust_helper to helpers

Quoted 14 lines · Miguel Ojeda
Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 6 lines

---
Cc: Peter Zijlstra <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ard Biesheuvel <[email protected]>

Quoted 6 lines

This one is the last one -- I guess if new ones were added during the merge window, we can have a v3 next cycle with this one plus any new ones.

Otherwise, I guess I will end up applying it after -rc1 -- and Acked-by would be nice.

Sure

I think Alison poked me on this, but cracks and all :/ Feel free to take through rust tree.

#21 lore raw

Re: [PATCH v2 09/27] rust: jump_label: add __rust_helper to helpers

Quoted 7 lines · Peter Zijlstra

Sure

I think Alison poked me on this, but cracks and all :/ Feel free to take through rust tree.

Thanks, will do!

Cheers,
Miguel

author maintainer
#22 lore raw

PATCH v2 10/27 rust: maple_tree: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Andrew Morton <[email protected]>
Cc: "Liam R. Howlett" <[email protected]>
Cc: Andrew Ballance <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 rust/helpers/maple_tree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rust/helpers/maple_tree.c +2 -1
index 1dd9ac84a13feed53c0ed5eec6805517081d0673..5586486a76e0de60969af1510b4b0428392920e6 100644
@@ -2,7 +2,8 @@
 
 #include <linux/maple_tree.h>
 
-void rust_helper_mt_init_flags(struct maple_tree *mt, unsigned int flags)
+__rust_helper void rust_helper_mt_init_flags(struct maple_tree *mt,
+					     unsigned int flags)
 {
 	mt_init_flags(mt, flags);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Acked-by on v2 10/27
#23 lore raw

Re: [PATCH v2 10/27] rust: maple_tree: add __rust_helper to helpers

Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 28 lines

---
Cc: Andrew Morton <[email protected]>
Cc: "Liam R. Howlett" <[email protected]>
Cc: Andrew Ballance <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 rust/helpers/maple_tree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rust/helpers/maple_tree.c +2 -1
index 1dd9ac84a13feed53c0ed5eec6805517081d0673..5586486a76e0de60969af1510b4b0428392920e6 100644
@@ -2,7 +2,8 @@
 
 #include <linux/maple_tree.h>
 
-void rust_helper_mt_init_flags(struct maple_tree *mt, unsigned int flags)
+__rust_helper void rust_helper_mt_init_flags(struct maple_tree *mt,
+					     unsigned int flags)
 {
 	mt_init_flags(mt, flags);
 }
Signature · 2 lines
-- 
2.52.0.351.gbe84eed79e-goog
author maintainer
#24 lore raw

PATCH v2 11/27 rust: mm: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Andrew Morton <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: "Liam R. Howlett" <[email protected]>
Cc: Uladzislau Rezki <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: [email protected]

---
 rust/helpers/mm.c      | 20 ++++++++++----------
 rust/helpers/page.c    |  9 +++++----
 rust/helpers/vmalloc.c |  2 +-
 3 files changed, 16 insertions(+), 15 deletions(-)
rust/helpers/mm.c +10 -10
index 81b510c96fd2692dcb7ab4705f790bd3a41a630e..b5540997bd20d4398e2838956ed70b2fb61c5661 100644
@@ -3,48 +3,48 @@
 #include <linux/mm.h>
 #include <linux/sched/mm.h>
 
-void rust_helper_mmgrab(struct mm_struct *mm)
+__rust_helper void rust_helper_mmgrab(struct mm_struct *mm)
 {
 	mmgrab(mm);
 }
 
-void rust_helper_mmdrop(struct mm_struct *mm)
+__rust_helper void rust_helper_mmdrop(struct mm_struct *mm)
 {
 	mmdrop(mm);
 }
 
-void rust_helper_mmget(struct mm_struct *mm)
+__rust_helper void rust_helper_mmget(struct mm_struct *mm)
 {
 	mmget(mm);
 }
 
-bool rust_helper_mmget_not_zero(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmget_not_zero(struct mm_struct *mm)
 {
 	return mmget_not_zero(mm);
 }
 
-void rust_helper_mmap_read_lock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_lock(struct mm_struct *mm)
 {
 	mmap_read_lock(mm);
 }
 
-bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
 {
 	return mmap_read_trylock(mm);
 }
 
-void rust_helper_mmap_read_unlock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_unlock(struct mm_struct *mm)
 {
 	mmap_read_unlock(mm);
 }
 
-struct vm_area_struct *rust_helper_vma_lookup(struct mm_struct *mm,
-					      unsigned long addr)
+__rust_helper struct vm_area_struct *
+rust_helper_vma_lookup(struct mm_struct *mm, unsigned long addr)
 {
 	return vma_lookup(mm, addr);
 }
 
-void rust_helper_vma_end_read(struct vm_area_struct *vma)
+__rust_helper void rust_helper_vma_end_read(struct vm_area_struct *vma)
 {
 	vma_end_read(vma);
 }
rust/helpers/page.c +5 -4
index 7144de5a61dbdb3006a668961cd1b09440e74908..f8463fbed2a2670ddfd4c23dc922b46b0913c3a2 100644
@@ -4,23 +4,24 @@
 #include <linux/highmem.h>
 #include <linux/mm.h>
 
-struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order)
+__rust_helper struct page *rust_helper_alloc_pages(gfp_t gfp_mask,
+						   unsigned int order)
 {
 	return alloc_pages(gfp_mask, order);
 }
 
-void *rust_helper_kmap_local_page(struct page *page)
+__rust_helper void *rust_helper_kmap_local_page(struct page *page)
 {
 	return kmap_local_page(page);
 }
 
-void rust_helper_kunmap_local(const void *addr)
+__rust_helper void rust_helper_kunmap_local(const void *addr)
 {
 	kunmap_local(addr);
 }
 
 #ifndef NODE_NOT_IN_PAGE_FLAGS
-int rust_helper_page_to_nid(const struct page *page)
+__rust_helper int rust_helper_page_to_nid(const struct page *page)
 {
 	return page_to_nid(page);
 }
rust/helpers/vmalloc.c +1 -1
index 7d7f7336b3d2f5a32e6a2b6cf8407da37775cfd9..326b030487a2b2199283b64b3b427e57cf5fb14a 100644
@@ -2,7 +2,7 @@
 
 #include <linux/vmalloc.h>
 
-void * __must_check __realloc_size(2)
+__rust_helper void *__must_check __realloc_size(2)
 rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
 				gfp_t flags, int node)
 {
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Acked-by on v2 11/27
#25 lore raw

Re: [PATCH v2 11/27] rust: mm: add __rust_helper to helpers

Quoted 5 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 126 lines

---
Cc: Andrew Morton <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: "Liam R. Howlett" <[email protected]>
Cc: Uladzislau Rezki <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: [email protected]

---
 rust/helpers/mm.c      | 20 ++++++++++----------
 rust/helpers/page.c    |  9 +++++----
 rust/helpers/vmalloc.c |  2 +-
 3 files changed, 16 insertions(+), 15 deletions(-)
rust/helpers/mm.c +10 -10
index 81b510c96fd2692dcb7ab4705f790bd3a41a630e..b5540997bd20d4398e2838956ed70b2fb61c5661 100644
@@ -3,48 +3,48 @@
 #include <linux/mm.h>
 #include <linux/sched/mm.h>
 
-void rust_helper_mmgrab(struct mm_struct *mm)
+__rust_helper void rust_helper_mmgrab(struct mm_struct *mm)
 {
 	mmgrab(mm);
 }
 
-void rust_helper_mmdrop(struct mm_struct *mm)
+__rust_helper void rust_helper_mmdrop(struct mm_struct *mm)
 {
 	mmdrop(mm);
 }
 
-void rust_helper_mmget(struct mm_struct *mm)
+__rust_helper void rust_helper_mmget(struct mm_struct *mm)
 {
 	mmget(mm);
 }
 
-bool rust_helper_mmget_not_zero(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmget_not_zero(struct mm_struct *mm)
 {
 	return mmget_not_zero(mm);
 }
 
-void rust_helper_mmap_read_lock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_lock(struct mm_struct *mm)
 {
 	mmap_read_lock(mm);
 }
 
-bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
 {
 	return mmap_read_trylock(mm);
 }
 
-void rust_helper_mmap_read_unlock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_unlock(struct mm_struct *mm)
 {
 	mmap_read_unlock(mm);
 }
 
-struct vm_area_struct *rust_helper_vma_lookup(struct mm_struct *mm,
-					      unsigned long addr)
+__rust_helper struct vm_area_struct *
+rust_helper_vma_lookup(struct mm_struct *mm, unsigned long addr)
 {
 	return vma_lookup(mm, addr);
 }
 
-void rust_helper_vma_end_read(struct vm_area_struct *vma)
+__rust_helper void rust_helper_vma_end_read(struct vm_area_struct *vma)
 {
 	vma_end_read(vma);
 }
rust/helpers/page.c +5 -4
index 7144de5a61dbdb3006a668961cd1b09440e74908..f8463fbed2a2670ddfd4c23dc922b46b0913c3a2 100644
@@ -4,23 +4,24 @@
 #include <linux/highmem.h>
 #include <linux/mm.h>
 
-struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order)
+__rust_helper struct page *rust_helper_alloc_pages(gfp_t gfp_mask,
+						   unsigned int order)
 {
 	return alloc_pages(gfp_mask, order);
 }
 
-void *rust_helper_kmap_local_page(struct page *page)
+__rust_helper void *rust_helper_kmap_local_page(struct page *page)
 {
 	return kmap_local_page(page);
 }
 
-void rust_helper_kunmap_local(const void *addr)
+__rust_helper void rust_helper_kunmap_local(const void *addr)
 {
 	kunmap_local(addr);
 }
 
 #ifndef NODE_NOT_IN_PAGE_FLAGS
-int rust_helper_page_to_nid(const struct page *page)
+__rust_helper int rust_helper_page_to_nid(const struct page *page)
 {
 	return page_to_nid(page);
 }
rust/helpers/vmalloc.c +1 -1
index 7d7f7336b3d2f5a32e6a2b6cf8407da37775cfd9..326b030487a2b2199283b64b3b427e57cf5fb14a 100644
@@ -2,7 +2,7 @@
 
 #include <linux/vmalloc.h>
 
-void * __must_check __realloc_size(2)
+__rust_helper void *__must_check __realloc_size(2)
 rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
 				gfp_t flags, int node)
 {
Signature · 2 lines
-- 
2.52.0.351.gbe84eed79e-goog
Reviewed-by
#26 lore raw

Re: [PATCH v2 11/27] rust: mm: add __rust_helper to helpers

Quoted 8 lines · Liam R. Howlett
Quoted 5 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Seems straightforward enough so:

Quoted 127 lines
Quoted 127 lines

---
Cc: Andrew Morton <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: "Liam R. Howlett" <[email protected]>
Cc: Uladzislau Rezki <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: [email protected]

---
 rust/helpers/mm.c      | 20 ++++++++++----------
 rust/helpers/page.c    |  9 +++++----
 rust/helpers/vmalloc.c |  2 +-
 3 files changed, 16 insertions(+), 15 deletions(-)
rust/helpers/mm.c +10 -10
index 81b510c96fd2692dcb7ab4705f790bd3a41a630e..b5540997bd20d4398e2838956ed70b2fb61c5661 100644
@@ -3,48 +3,48 @@
 #include <linux/mm.h>
 #include <linux/sched/mm.h>
 
-void rust_helper_mmgrab(struct mm_struct *mm)
+__rust_helper void rust_helper_mmgrab(struct mm_struct *mm)
 {
 	mmgrab(mm);
 }
 
-void rust_helper_mmdrop(struct mm_struct *mm)
+__rust_helper void rust_helper_mmdrop(struct mm_struct *mm)
 {
 	mmdrop(mm);
 }
 
-void rust_helper_mmget(struct mm_struct *mm)
+__rust_helper void rust_helper_mmget(struct mm_struct *mm)
 {
 	mmget(mm);
 }
 
-bool rust_helper_mmget_not_zero(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmget_not_zero(struct mm_struct *mm)
 {
 	return mmget_not_zero(mm);
 }
 
-void rust_helper_mmap_read_lock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_lock(struct mm_struct *mm)
 {
 	mmap_read_lock(mm);
 }
 
-bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
+__rust_helper bool rust_helper_mmap_read_trylock(struct mm_struct *mm)
 {
 	return mmap_read_trylock(mm);
 }
 
-void rust_helper_mmap_read_unlock(struct mm_struct *mm)
+__rust_helper void rust_helper_mmap_read_unlock(struct mm_struct *mm)
 {
 	mmap_read_unlock(mm);
 }
 
-struct vm_area_struct *rust_helper_vma_lookup(struct mm_struct *mm,
-					      unsigned long addr)
+__rust_helper struct vm_area_struct *
+rust_helper_vma_lookup(struct mm_struct *mm, unsigned long addr)
 {
 	return vma_lookup(mm, addr);
 }
 
-void rust_helper_vma_end_read(struct vm_area_struct *vma)
+__rust_helper void rust_helper_vma_end_read(struct vm_area_struct *vma)
 {
 	vma_end_read(vma);
 }
rust/helpers/page.c +5 -4
index 7144de5a61dbdb3006a668961cd1b09440e74908..f8463fbed2a2670ddfd4c23dc922b46b0913c3a2 100644
@@ -4,23 +4,24 @@
 #include <linux/highmem.h>
 #include <linux/mm.h>
 
-struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order)
+__rust_helper struct page *rust_helper_alloc_pages(gfp_t gfp_mask,
+						   unsigned int order)
 {
 	return alloc_pages(gfp_mask, order);
 }
 
-void *rust_helper_kmap_local_page(struct page *page)
+__rust_helper void *rust_helper_kmap_local_page(struct page *page)
 {
 	return kmap_local_page(page);
 }
 
-void rust_helper_kunmap_local(const void *addr)
+__rust_helper void rust_helper_kunmap_local(const void *addr)
 {
 	kunmap_local(addr);
 }
 
 #ifndef NODE_NOT_IN_PAGE_FLAGS
-int rust_helper_page_to_nid(const struct page *page)
+__rust_helper int rust_helper_page_to_nid(const struct page *page)
 {
 	return page_to_nid(page);
 }
rust/helpers/vmalloc.c +1 -2
index 7d7f7336b3d2f5a32e6a2b6cf8407da37775cfd9..326b030487a2b2199283b64b3b427e57cf5fb14a 100644
@@ -2,7 +2,7 @@
 
 #include <linux/vmalloc.h>
 
-void * __must_check __realloc_size(2)
+__rust_helper void *__must_check __realloc_size(2)
 rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
 				gfp_t flags, int node)
 {
 
--

2.52.0.351.gbe84eed79e-goog

author maintainer
#27 lore raw

PATCH v2 12/27 rust: of: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Rob Herring <[email protected]>
Cc: [email protected]

---
 rust/helpers/of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/of.c +1 -1
index 86b51167c913f96b626e55adb51bdac2a9f04f56..8f62ca69e8ba54098343dcef77f5e82e5a3bf497 100644
@@ -2,7 +2,7 @@
 
 #include <linux/of.h>
 
-bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
+__rust_helper bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
 {
 	return is_of_node(fwnode);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
maintainer Acked-by on v2 12/27
#28 lore raw

Re: [PATCH v2 12/27] rust: of: add __rust_helper to helpers

Quoted 11 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Rob Herring <[email protected]>
Cc: [email protected]

---
 rust/helpers/of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
author maintainer
#29 lore raw

PATCH v2 13/27 rust: processor: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: FUJITA Tomonori <[email protected]>
Cc: Andreas Hindborg <[email protected]>
Cc: Miguel Ojeda <[email protected]>
Cc: Daniel Almeida <[email protected]>

---
 rust/helpers/processor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/processor.c +1 -1
index d41355e14d6eb593beb018b5709118afe855c852..76fadbb647c5592db4526569fb1ed6b04ed17e87 100644
@@ -2,7 +2,7 @@
 
 #include <linux/processor.h>
 
-void rust_helper_cpu_relax(void)
+__rust_helper void rust_helper_cpu_relax(void)
 {
 	cpu_relax();
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#30 lore raw

[tip: locking/core] rust: processor: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     a87e6fe8738fabf9881758b79b0db592c057acbd
Gitweb:        https://git.kernel.org/tip/a87e6fe8738fabf9881758b79b0db592c057acbd
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:26 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00

rust: processor: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/processor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/processor.c +1 -1
index d41355e..76fadbb 100644
@@ -2,7 +2,7 @@
 
 #include <linux/processor.h>
 
-void rust_helper_cpu_relax(void)
+__rust_helper void rust_helper_cpu_relax(void)
 {
 	cpu_relax();
 }
author maintainer
#31 lore raw

PATCH v2 14/27 rust: pwm: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Michal Wilczynski <[email protected]>
Cc: [email protected]

---
 rust/helpers/pwm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
rust/helpers/pwm.c +3 -3
index d75c588863685d3990b525bb1b84aa4bc35ac397..eb24d2ea8e748364f3e17dccbb6a92fd7f2514c0 100644
@@ -4,17 +4,17 @@
 
 #include <linux/pwm.h>
 
-struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
+__rust_helper struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
 {
 	return pwmchip_parent(chip);
 }
 
-void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
+__rust_helper void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
 {
 	return pwmchip_get_drvdata(chip);
 }
 
-void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
+__rust_helper void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
 {
 	pwmchip_set_drvdata(chip, data);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
maintainer Acked-by on v2 14/27
#32 lore raw

Re: [PATCH v2 14/27] rust: pwm: add __rust_helper to helpers

Quoted 26 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Michal Wilczynski <[email protected]>
Cc: [email protected]

---
 rust/helpers/pwm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
rust/helpers/pwm.c +1 -2
index d75c588863685d3990b525bb1b84aa4bc35ac397..eb24d2ea8e748364f3e17dccbb6a92fd7f2514c0 100644
@@ -4,17 +4,17 @@
 
 #include <linux/pwm.h>
 
-struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
+__rust_helper struct device *rust_helper_pwmchip_parent(const struct pwm_chip *chip)
 {
 	return pwmchip_parent(chip);
 }
 
-void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)

rust/helpers/pwm.c line 20

Quoted 10 lines
rust/helpers/pwm.c +2 -1
+__rust_helper void *rust_helper_pwmchip_get_drvdata(struct pwm_chip *chip)
 {
 	return pwmchip_get_drvdata(chip);
 }
 
-void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
+__rust_helper void rust_helper_pwmchip_set_drvdata(struct pwm_chip *chip, void *data)
 {
 	pwmchip_set_drvdata(chip, data);
 }
author maintainer
#34 lore raw

PATCH v2 15/27 rust: rbtree: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
 rust/helpers/rbtree.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
rust/helpers/rbtree.c +5 -4
index 2a0eabbb41603b0200e051ac5c091a870bd7346c..a85defb22ff7c6d5104a503f4456294bfc2b4756 100644
@@ -2,18 +2,19 @@
 
 #include <linux/rbtree.h>
 
-void rust_helper_rb_link_node(struct rb_node *node, struct rb_node *parent,
-			      struct rb_node **rb_link)
+__rust_helper 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);
 }
 
-struct rb_node *rust_helper_rb_first(const struct rb_root *root)
+__rust_helper struct rb_node *rust_helper_rb_first(const struct rb_root *root)
 {
 	return rb_first(root);
 }
 
-struct rb_node *rust_helper_rb_last(const struct rb_root *root)
+__rust_helper struct rb_node *rust_helper_rb_last(const struct rb_root *root)
 {
 	return rb_last(root);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#35 lore raw

PATCH v2 16/27 rust: rcu: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: "Paul E. McKenney" <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: [email protected]

---
 rust/helpers/rcu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/rcu.c +2 -2
index f1cec6583513497e996f74835ca2c6c3f4a8c954..481274c058577276e20093a1014fc49f4a40421b 100644
@@ -2,12 +2,12 @@
 
 #include <linux/rcupdate.h>
 
-void rust_helper_rcu_read_lock(void)
+__rust_helper void rust_helper_rcu_read_lock(void)
 {
 	rcu_read_lock();
 }
 
-void rust_helper_rcu_read_unlock(void)
+__rust_helper void rust_helper_rcu_read_unlock(void)
 {
 	rcu_read_unlock();
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Reviewed-by on v2 16/27
#36 lore raw

Re: [PATCH v2 16/27] rust: rcu: add __rust_helper to helpers

Quoted 5 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Thanks.

Quoted 28 lines

---
Cc: "Paul E. McKenney" <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: [email protected]

---
 rust/helpers/rcu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/rcu.c +2 -2
index f1cec6583513497e996f74835ca2c6c3f4a8c954..481274c058577276e20093a1014fc49f4a40421b 100644
@@ -2,12 +2,12 @@
 
 #include <linux/rcupdate.h>
 
-void rust_helper_rcu_read_lock(void)
+__rust_helper void rust_helper_rcu_read_lock(void)
 {
 	rcu_read_lock();
 }
 
-void rust_helper_rcu_read_unlock(void)
+__rust_helper void rust_helper_rcu_read_unlock(void)
 {
 	rcu_read_unlock();
 }
merge bot Applied
#37 lore raw

[tip: locking/core] rust: rcu: Add __rust_helper to helpers

In reply to Alice Ryhl
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     5e03edaed373f41e7a3c8617e01891eb680d62aa
Gitweb:        https://git.kernel.org/tip/5e03edaed373f41e7a3c8617e01891eb680d62aa
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:29 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: rcu: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/rcu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/rcu.c +2 -2
index f1cec65..481274c 100644
@@ -2,12 +2,12 @@
 
 #include <linux/rcupdate.h>
 
-void rust_helper_rcu_read_lock(void)
+__rust_helper void rust_helper_rcu_read_lock(void)
 {
 	rcu_read_lock();
 }
 
-void rust_helper_rcu_read_unlock(void)
+__rust_helper void rust_helper_rcu_read_unlock(void)
 {
 	rcu_read_unlock();
 }
author maintainer
#38 lore raw

PATCH v2 17/27 rust: refcount: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Boqun Feng <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Fiona Behrens <[email protected]>
Cc: Benno Lossin <[email protected]>
Cc: Gary Guo <[email protected]>

---
 rust/helpers/refcount.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
rust/helpers/refcount.c +5 -5
index d175898ad7b81ee9da3d9d125764db02e837da52..36334a674ee42eb46792210903a0e3cf9debd9a1 100644
@@ -2,27 +2,27 @@
 
 #include <linux/refcount.h>
 
-refcount_t rust_helper_REFCOUNT_INIT(int n)
+__rust_helper refcount_t rust_helper_REFCOUNT_INIT(int n)
 {
 	return (refcount_t)REFCOUNT_INIT(n);
 }
 
-void rust_helper_refcount_set(refcount_t *r, int n)
+__rust_helper void rust_helper_refcount_set(refcount_t *r, int n)
 {
 	refcount_set(r, n);
 }
 
-void rust_helper_refcount_inc(refcount_t *r)
+__rust_helper void rust_helper_refcount_inc(refcount_t *r)
 {
 	refcount_inc(r);
 }
 
-void rust_helper_refcount_dec(refcount_t *r)
+__rust_helper void rust_helper_refcount_dec(refcount_t *r)
 {
 	refcount_dec(r);
 }
 
-bool rust_helper_refcount_dec_and_test(refcount_t *r)
+__rust_helper bool rust_helper_refcount_dec_and_test(refcount_t *r)
 {
 	return refcount_dec_and_test(r);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#39 lore raw

[tip: locking/core] rust: refcount: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     9ba1aaf25ab7dadb910348b6857865e87b4c5689
Gitweb:        https://git.kernel.org/tip/9ba1aaf25ab7dadb910348b6857865e87b4c5689
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:30 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: refcount: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/refcount.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
rust/helpers/refcount.c +5 -5
index d175898..36334a6 100644
@@ -2,27 +2,27 @@
 
 #include <linux/refcount.h>
 
-refcount_t rust_helper_REFCOUNT_INIT(int n)
+__rust_helper refcount_t rust_helper_REFCOUNT_INIT(int n)
 {
 	return (refcount_t)REFCOUNT_INIT(n);
 }
 
-void rust_helper_refcount_set(refcount_t *r, int n)
+__rust_helper void rust_helper_refcount_set(refcount_t *r, int n)
 {
 	refcount_set(r, n);
 }
 
-void rust_helper_refcount_inc(refcount_t *r)
+__rust_helper void rust_helper_refcount_inc(refcount_t *r)
 {
 	refcount_inc(r);
 }
 
-void rust_helper_refcount_dec(refcount_t *r)
+__rust_helper void rust_helper_refcount_dec(refcount_t *r)
 {
 	refcount_dec(r);
 }
 
-bool rust_helper_refcount_dec_and_test(refcount_t *r)
+__rust_helper bool rust_helper_refcount_dec_and_test(refcount_t *r)
 {
 	return refcount_dec_and_test(r);
 }
author maintainer
#40 lore raw

PATCH v2 18/27 rust: security: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Paul Moore <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]

---
 rust/helpers/security.c | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)
rust/helpers/security.c +15 -11
index ca22da09548dfed95a83168ed09263e75cf08fd2..8d0a25fcf931ac6540a986aa10187c345614fc9e 100644
@@ -3,41 +3,45 @@
 #include <linux/security.h>
 
 #ifndef CONFIG_SECURITY
-void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid)
+__rust_helper void rust_helper_security_cred_getsecid(const struct cred *c,
+						      u32 *secid)
 {
 	security_cred_getsecid(c, secid);
 }
 
-int rust_helper_security_secid_to_secctx(u32 secid, struct lsm_context *cp)
+__rust_helper int rust_helper_security_secid_to_secctx(u32 secid,
+						       struct lsm_context *cp)
 {
 	return security_secid_to_secctx(secid, cp);
 }
 
-void rust_helper_security_release_secctx(struct lsm_context *cp)
+__rust_helper void rust_helper_security_release_secctx(struct lsm_context *cp)
 {
 	security_release_secctx(cp);
 }
 
-int rust_helper_security_binder_set_context_mgr(const struct cred *mgr)
+__rust_helper int
+rust_helper_security_binder_set_context_mgr(const struct cred *mgr)
 {
 	return security_binder_set_context_mgr(mgr);
 }
 
-int rust_helper_security_binder_transaction(const struct cred *from,
-					    const struct cred *to)
+__rust_helper int
+rust_helper_security_binder_transaction(const struct cred *from,
+					const struct cred *to)
 {
 	return security_binder_transaction(from, to);
 }
 
-int rust_helper_security_binder_transfer_binder(const struct cred *from,
-						const struct cred *to)
+__rust_helper int
+rust_helper_security_binder_transfer_binder(const struct cred *from,
+					    const struct cred *to)
 {
 	return security_binder_transfer_binder(from, to);
 }
 
-int rust_helper_security_binder_transfer_file(const struct cred *from,
-					      const struct cred *to,
-					      const struct file *file)
+__rust_helper int rust_helper_security_binder_transfer_file(
+	const struct cred *from, const struct cred *to, const struct file *file)
 {
 	return security_binder_transfer_file(from, to, file);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
maintainer Applied
#41 lore raw

Re: [PATCH v2 18/27] rust: security: add __rust_helper to helpers

Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 7 lines

---
Cc: Paul Moore <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]

---
 rust/helpers/security.c | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Merged into lsm/dev, thanks.

Signature · 1 line
paul-moore.com
author maintainer
#42 lore raw

PATCH v2 19/27 rust: slab: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Vlastimil Babka <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Danilo Krummrich <[email protected]>

---
 rust/helpers/slab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/helpers/slab.c +2 -2
index 7fac958907b0a7cbb28ef3a8a56e0cc10d39288f..9279f082467d896381e34c4333492a92d626da2e 100644
@@ -2,14 +2,14 @@
 
 #include <linux/slab.h>
 
-void * __must_check __realloc_size(2)
+__rust_helper void *__must_check __realloc_size(2)
 rust_helper_krealloc_node_align(const void *objp, size_t new_size, unsigned long align,
 				gfp_t flags, int node)
 {
 	return krealloc_node_align(objp, new_size, align, flags, node);
 }
 
-void * __must_check __realloc_size(2)
+__rust_helper void *__must_check __realloc_size(2)
 rust_helper_kvrealloc_node_align(const void *p, size_t size, unsigned long align,
 				 gfp_t flags, int node)
 {
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
reviewer Acked-by on v2 19/27
#43 lore raw

Re: [PATCH v2 19/27] rust: slab: add __rust_helper to helpers

Quoted 5 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Since this file contains the helpers for the alloc module, I assume I should take it through the alloc tree? Maybe we should also add it to the alloc entry in maintainers.

Anyways, so far I do not have anything staged in the alloc tree for this cycle, so it would probably be easier if either Andrew or Miguel picks it up directly.

author maintainer
#44 lore raw

Re: [PATCH v2 19/27] rust: slab: add __rust_helper to helpers

Quoted 7 lines · Danilo Krummrich
Quoted 5 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 8 lines

Since this file contains the helpers for the alloc module, I assume I should take it through the alloc tree? Maybe we should also add it to the alloc entry in maintainers.

Anyways, so far I do not have anything staged in the alloc tree for this cycle, so it would probably be easier if either Andrew or Miguel picks it up directly.

Sounds good to me. There is also mm and maple_tree for Andrew Morton.

Alice

#45 lore raw

Re: [PATCH v2 19/27] rust: slab: add __rust_helper to helpers

Quoted 2 lines · Alice Ryhl

Sounds good to me. There is also mm and maple_tree for Andrew Morton.

Either way sounds good for me -- anyway I will have to pick the bug and err at least.

Cheers,
Miguel

author maintainer
#46 lore raw

PATCH v2 20/27 rust: sync: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Mitchell Levy <[email protected]>
Cc: Benno Lossin <[email protected]>

---
 rust/helpers/mutex.c    | 13 +++++++------
 rust/helpers/spinlock.c | 13 +++++++------
 rust/helpers/sync.c     |  4 ++--
 3 files changed, 16 insertions(+), 14 deletions(-)
rust/helpers/mutex.c +7 -6
index e487819125f0dfe0741601205e8f84d322c973d5..1b07d6e64299d509bc3ce1af99b19aa97b721fc6 100644
@@ -2,28 +2,29 @@
 
 #include <linux/mutex.h>
 
-void rust_helper_mutex_lock(struct mutex *lock)
+__rust_helper void rust_helper_mutex_lock(struct mutex *lock)
 {
 	mutex_lock(lock);
 }
 
-int rust_helper_mutex_trylock(struct mutex *lock)
+__rust_helper int rust_helper_mutex_trylock(struct mutex *lock)
 {
 	return mutex_trylock(lock);
 }
 
-void rust_helper___mutex_init(struct mutex *mutex, const char *name,
-			      struct lock_class_key *key)
+__rust_helper void rust_helper___mutex_init(struct mutex *mutex,
+					    const char *name,
+					    struct lock_class_key *key)
 {
 	__mutex_init(mutex, name, key);
 }
 
-void rust_helper_mutex_assert_is_held(struct mutex *mutex)
+__rust_helper void rust_helper_mutex_assert_is_held(struct mutex *mutex)
 {
 	lockdep_assert_held(mutex);
 }
 
-void rust_helper_mutex_destroy(struct mutex *lock)
+__rust_helper void rust_helper_mutex_destroy(struct mutex *lock)
 {
 	mutex_destroy(lock);
 }
rust/helpers/spinlock.c +7 -6
index 42c4bf01a23e4003ea82c65b16bc8f495ad37750..4d13062cf253e67894aaa9ba968ff381db2c651e 100644
@@ -2,8 +2,9 @@
 
 #include <linux/spinlock.h>
 
-void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,
-				  struct lock_class_key *key)
+__rust_helper void rust_helper___spin_lock_init(spinlock_t *lock,
+						const char *name,
+						struct lock_class_key *key)
 {
 #ifdef CONFIG_DEBUG_SPINLOCK
 # if defined(CONFIG_PREEMPT_RT)
@@ -16,22 +17,22 @@ void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,
 #endif /* CONFIG_DEBUG_SPINLOCK */
 }
 
-void rust_helper_spin_lock(spinlock_t *lock)
+__rust_helper void rust_helper_spin_lock(spinlock_t *lock)
 {
 	spin_lock(lock);
 }
 
-void rust_helper_spin_unlock(spinlock_t *lock)
+__rust_helper void rust_helper_spin_unlock(spinlock_t *lock)
 {
 	spin_unlock(lock);
 }
 
-int rust_helper_spin_trylock(spinlock_t *lock)
+__rust_helper int rust_helper_spin_trylock(spinlock_t *lock)
 {
 	return spin_trylock(lock);
 }
 
-void rust_helper_spin_assert_is_held(spinlock_t *lock)
+__rust_helper void rust_helper_spin_assert_is_held(spinlock_t *lock)
 {
 	lockdep_assert_held(lock);
 }
rust/helpers/sync.c +2 -2
index ff7e68b4881011ce0aa9beb2df14bf0ffd147337..82d6aff73b04f0ab1030bb5170e40ed6ccac41c0 100644
@@ -2,12 +2,12 @@
 
 #include <linux/lockdep.h>
 
-void rust_helper_lockdep_register_key(struct lock_class_key *k)
+__rust_helper void rust_helper_lockdep_register_key(struct lock_class_key *k)
 {
 	lockdep_register_key(k);
 }
 
-void rust_helper_lockdep_unregister_key(struct lock_class_key *k)
+__rust_helper void rust_helper_lockdep_unregister_key(struct lock_class_key *k)
 {
 	lockdep_unregister_key(k);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#47 lore raw

[tip: locking/core] rust: sync: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     d4ad4de929ba27ed241c6ef1098b1687001ced1f
Gitweb:        https://git.kernel.org/tip/d4ad4de929ba27ed241c6ef1098b1687001ced1f
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:33 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: sync: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/mutex.c    | 13 +++++++------
 rust/helpers/spinlock.c | 13 +++++++------
 rust/helpers/sync.c     |  4 ++--
 3 files changed, 16 insertions(+), 14 deletions(-)
rust/helpers/mutex.c +7 -6
index e487819..1b07d6e 100644
@@ -2,28 +2,29 @@
 
 #include <linux/mutex.h>
 
-void rust_helper_mutex_lock(struct mutex *lock)
+__rust_helper void rust_helper_mutex_lock(struct mutex *lock)
 {
 	mutex_lock(lock);
 }
 
-int rust_helper_mutex_trylock(struct mutex *lock)
+__rust_helper int rust_helper_mutex_trylock(struct mutex *lock)
 {
 	return mutex_trylock(lock);
 }
 
-void rust_helper___mutex_init(struct mutex *mutex, const char *name,
-			      struct lock_class_key *key)
+__rust_helper void rust_helper___mutex_init(struct mutex *mutex,
+					    const char *name,
+					    struct lock_class_key *key)
 {
 	__mutex_init(mutex, name, key);
 }
 
-void rust_helper_mutex_assert_is_held(struct mutex *mutex)
+__rust_helper void rust_helper_mutex_assert_is_held(struct mutex *mutex)
 {
 	lockdep_assert_held(mutex);
 }
 
-void rust_helper_mutex_destroy(struct mutex *lock)
+__rust_helper void rust_helper_mutex_destroy(struct mutex *lock)
 {
 	mutex_destroy(lock);
 }
rust/helpers/spinlock.c +7 -6
index 42c4bf0..4d13062 100644
@@ -2,8 +2,9 @@
 
 #include <linux/spinlock.h>
 
-void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,
-				  struct lock_class_key *key)
+__rust_helper void rust_helper___spin_lock_init(spinlock_t *lock,
+						const char *name,
+						struct lock_class_key *key)
 {
 #ifdef CONFIG_DEBUG_SPINLOCK
 # if defined(CONFIG_PREEMPT_RT)
@@ -16,22 +17,22 @@ void rust_helper___spin_lock_init(spinlock_t *lock, const char *name,
 #endif /* CONFIG_DEBUG_SPINLOCK */
 }
 
-void rust_helper_spin_lock(spinlock_t *lock)
+__rust_helper void rust_helper_spin_lock(spinlock_t *lock)
 {
 	spin_lock(lock);
 }
 
-void rust_helper_spin_unlock(spinlock_t *lock)
+__rust_helper void rust_helper_spin_unlock(spinlock_t *lock)
 {
 	spin_unlock(lock);
 }
 
-int rust_helper_spin_trylock(spinlock_t *lock)
+__rust_helper int rust_helper_spin_trylock(spinlock_t *lock)
 {
 	return spin_trylock(lock);
 }
 
-void rust_helper_spin_assert_is_held(spinlock_t *lock)
+__rust_helper void rust_helper_spin_assert_is_held(spinlock_t *lock)
 {
 	lockdep_assert_held(lock);
 }
rust/helpers/sync.c +2 -2
index ff7e68b..82d6aff 100644
@@ -2,12 +2,12 @@
 
 #include <linux/lockdep.h>
 
-void rust_helper_lockdep_register_key(struct lock_class_key *k)
+__rust_helper void rust_helper_lockdep_register_key(struct lock_class_key *k)
 {
 	lockdep_register_key(k);
 }
 
-void rust_helper_lockdep_unregister_key(struct lock_class_key *k)
+__rust_helper void rust_helper_lockdep_unregister_key(struct lock_class_key *k)
 {
 	lockdep_unregister_key(k);
 }
author maintainer
#48 lore raw

PATCH v2 21/27 rust: task: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Boqun Feng <[email protected]>
Cc: FUJITA Tomonori <[email protected]>

---
 rust/helpers/signal.c |  2 +-
 rust/helpers/task.c   | 24 ++++++++++++------------
 2 files changed, 13 insertions(+), 13 deletions(-)
rust/helpers/signal.c +1 -1
index 1a6bbe9438e281cd8b61141a390cea042949e7bd..85111186cf3d77508fefac9407c87c5f000d15cf 100644
@@ -2,7 +2,7 @@
 
 #include <linux/sched/signal.h>
 
-int rust_helper_signal_pending(struct task_struct *t)
+__rust_helper int rust_helper_signal_pending(struct task_struct *t)
 {
 	return signal_pending(t);
 }
rust/helpers/task.c +12 -12
index 2c85bbc2727efedf5eb61fe496cd80598fafcdd1..c0e1a06ede78c0b0641707b52a82725543e2c02c 100644
@@ -3,60 +3,60 @@
 #include <linux/kernel.h>
 #include <linux/sched/task.h>
 
-void rust_helper_might_resched(void)
+__rust_helper void rust_helper_might_resched(void)
 {
 	might_resched();
 }
 
-struct task_struct *rust_helper_get_current(void)
+__rust_helper struct task_struct *rust_helper_get_current(void)
 {
 	return current;
 }
 
-void rust_helper_get_task_struct(struct task_struct *t)
+__rust_helper void rust_helper_get_task_struct(struct task_struct *t)
 {
 	get_task_struct(t);
 }
 
-void rust_helper_put_task_struct(struct task_struct *t)
+__rust_helper void rust_helper_put_task_struct(struct task_struct *t)
 {
 	put_task_struct(t);
 }
 
-kuid_t rust_helper_task_uid(struct task_struct *task)
+__rust_helper kuid_t rust_helper_task_uid(struct task_struct *task)
 {
 	return task_uid(task);
 }
 
-kuid_t rust_helper_task_euid(struct task_struct *task)
+__rust_helper kuid_t rust_helper_task_euid(struct task_struct *task)
 {
 	return task_euid(task);
 }
 
 #ifndef CONFIG_USER_NS
-uid_t rust_helper_from_kuid(struct user_namespace *to, kuid_t uid)
+__rust_helper uid_t rust_helper_from_kuid(struct user_namespace *to, kuid_t uid)
 {
 	return from_kuid(to, uid);
 }
 #endif /* CONFIG_USER_NS */
 
-bool rust_helper_uid_eq(kuid_t left, kuid_t right)
+__rust_helper bool rust_helper_uid_eq(kuid_t left, kuid_t right)
 {
 	return uid_eq(left, right);
 }
 
-kuid_t rust_helper_current_euid(void)
+__rust_helper kuid_t rust_helper_current_euid(void)
 {
 	return current_euid();
 }
 
-struct user_namespace *rust_helper_current_user_ns(void)
+__rust_helper struct user_namespace *rust_helper_current_user_ns(void)
 {
 	return current_user_ns();
 }
 
-pid_t rust_helper_task_tgid_nr_ns(struct task_struct *tsk,
-				  struct pid_namespace *ns)
+__rust_helper pid_t rust_helper_task_tgid_nr_ns(struct task_struct *tsk,
+						struct pid_namespace *ns)
 {
 	return task_tgid_nr_ns(tsk, ns);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#49 lore raw

[tip: locking/core] rust: task: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     5f1193d55a4311780136044355b1f09e7b5abac7
Gitweb:        https://git.kernel.org/tip/5f1193d55a4311780136044355b1f09e7b5abac7
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:34 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: task: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/signal.c |  2 +-
 rust/helpers/task.c   | 24 ++++++++++++------------
 2 files changed, 13 insertions(+), 13 deletions(-)
rust/helpers/signal.c +1 -1
index 1a6bbe9..8511118 100644
@@ -2,7 +2,7 @@
 
 #include <linux/sched/signal.h>
 
-int rust_helper_signal_pending(struct task_struct *t)
+__rust_helper int rust_helper_signal_pending(struct task_struct *t)
 {
 	return signal_pending(t);
 }
rust/helpers/task.c +12 -12
index 2c85bbc..c0e1a06 100644
@@ -3,60 +3,60 @@
 #include <linux/kernel.h>
 #include <linux/sched/task.h>
 
-void rust_helper_might_resched(void)
+__rust_helper void rust_helper_might_resched(void)
 {
 	might_resched();
 }
 
-struct task_struct *rust_helper_get_current(void)
+__rust_helper struct task_struct *rust_helper_get_current(void)
 {
 	return current;
 }
 
-void rust_helper_get_task_struct(struct task_struct *t)
+__rust_helper void rust_helper_get_task_struct(struct task_struct *t)
 {
 	get_task_struct(t);
 }
 
-void rust_helper_put_task_struct(struct task_struct *t)
+__rust_helper void rust_helper_put_task_struct(struct task_struct *t)
 {
 	put_task_struct(t);
 }
 
-kuid_t rust_helper_task_uid(struct task_struct *task)
+__rust_helper kuid_t rust_helper_task_uid(struct task_struct *task)
 {
 	return task_uid(task);
 }
 
-kuid_t rust_helper_task_euid(struct task_struct *task)
+__rust_helper kuid_t rust_helper_task_euid(struct task_struct *task)
 {
 	return task_euid(task);
 }
 
 #ifndef CONFIG_USER_NS
-uid_t rust_helper_from_kuid(struct user_namespace *to, kuid_t uid)
+__rust_helper uid_t rust_helper_from_kuid(struct user_namespace *to, kuid_t uid)
 {
 	return from_kuid(to, uid);
 }
 #endif /* CONFIG_USER_NS */
 
-bool rust_helper_uid_eq(kuid_t left, kuid_t right)
+__rust_helper bool rust_helper_uid_eq(kuid_t left, kuid_t right)
 {
 	return uid_eq(left, right);
 }
 
-kuid_t rust_helper_current_euid(void)
+__rust_helper kuid_t rust_helper_current_euid(void)
 {
 	return current_euid();
 }
 
-struct user_namespace *rust_helper_current_user_ns(void)
+__rust_helper struct user_namespace *rust_helper_current_user_ns(void)
 {
 	return current_user_ns();
 }
 
-pid_t rust_helper_task_tgid_nr_ns(struct task_struct *tsk,
-				  struct pid_namespace *ns)
+__rust_helper pid_t rust_helper_task_tgid_nr_ns(struct task_struct *tsk,
+						struct pid_namespace *ns)
 {
 	return task_tgid_nr_ns(tsk, ns);
 }
author maintainer
#50 lore raw

PATCH v2 22/27 rust: time: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Andreas Hindborg <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: FUJITA Tomonori <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Lyude Paul <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Fiona Behrens <[email protected]>
Cc: Gary Guo <[email protected]>

---
 rust/helpers/time.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
rust/helpers/time.c +7 -7
index 67a36ccc3ec48379bc5983e58b1567947c5dcace..32f4959704939c0691bca03bad48b95becf21d10 100644
@@ -4,37 +4,37 @@
 #include <linux/ktime.h>
 #include <linux/timekeeping.h>
 
-void rust_helper_fsleep(unsigned long usecs)
+__rust_helper void rust_helper_fsleep(unsigned long usecs)
 {
 	fsleep(usecs);
 }
 
-ktime_t rust_helper_ktime_get_real(void)
+__rust_helper ktime_t rust_helper_ktime_get_real(void)
 {
 	return ktime_get_real();
 }
 
-ktime_t rust_helper_ktime_get_boottime(void)
+__rust_helper ktime_t rust_helper_ktime_get_boottime(void)
 {
 	return ktime_get_boottime();
 }
 
-ktime_t rust_helper_ktime_get_clocktai(void)
+__rust_helper ktime_t rust_helper_ktime_get_clocktai(void)
 {
 	return ktime_get_clocktai();
 }
 
-s64 rust_helper_ktime_to_us(const ktime_t kt)
+__rust_helper s64 rust_helper_ktime_to_us(const ktime_t kt)
 {
 	return ktime_to_us(kt);
 }
 
-s64 rust_helper_ktime_to_ms(const ktime_t kt)
+__rust_helper s64 rust_helper_ktime_to_ms(const ktime_t kt)
 {
 	return ktime_to_ms(kt);
 }
 
-void rust_helper_udelay(unsigned long usec)
+__rust_helper void rust_helper_udelay(unsigned long usec)
 {
 	udelay(usec);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#51 lore raw

[tip: locking/core] rust: time: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     75b6034780e8dc8c71096313534ccb720fa633f9
Gitweb:        https://git.kernel.org/tip/75b6034780e8dc8c71096313534ccb720fa633f9
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:35 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: time: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/time.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
rust/helpers/time.c +7 -7
index 67a36cc..32f4959 100644
@@ -4,37 +4,37 @@
 #include <linux/ktime.h>
 #include <linux/timekeeping.h>
 
-void rust_helper_fsleep(unsigned long usecs)
+__rust_helper void rust_helper_fsleep(unsigned long usecs)
 {
 	fsleep(usecs);
 }
 
-ktime_t rust_helper_ktime_get_real(void)
+__rust_helper ktime_t rust_helper_ktime_get_real(void)
 {
 	return ktime_get_real();
 }
 
-ktime_t rust_helper_ktime_get_boottime(void)
+__rust_helper ktime_t rust_helper_ktime_get_boottime(void)
 {
 	return ktime_get_boottime();
 }
 
-ktime_t rust_helper_ktime_get_clocktai(void)
+__rust_helper ktime_t rust_helper_ktime_get_clocktai(void)
 {
 	return ktime_get_clocktai();
 }
 
-s64 rust_helper_ktime_to_us(const ktime_t kt)
+__rust_helper s64 rust_helper_ktime_to_us(const ktime_t kt)
 {
 	return ktime_to_us(kt);
 }
 
-s64 rust_helper_ktime_to_ms(const ktime_t kt)
+__rust_helper s64 rust_helper_ktime_to_ms(const ktime_t kt)
 {
 	return ktime_to_ms(kt);
 }
 
-void rust_helper_udelay(unsigned long usec)
+__rust_helper void rust_helper_udelay(unsigned long usec)
 {
 	udelay(usec);
 }
author maintainer
#52 lore raw

PATCH v2 23/27 rust: uaccess: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Greg Kroah-Hartman <[email protected]>

---
 rust/helpers/uaccess.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
rust/helpers/uaccess.c +6 -4
index 4629b2d15529abf20d02352d587808b621749c61..d9625b9ee04669777e01af05034af35218557050 100644
@@ -2,24 +2,26 @@
 
 #include <linux/uaccess.h>
 
-unsigned long rust_helper_copy_from_user(void *to, const void __user *from,
-					 unsigned long n)
+__rust_helper unsigned long
+rust_helper_copy_from_user(void *to, const void __user *from, unsigned long n)
 {
 	return copy_from_user(to, from, n);
 }
 
-unsigned long rust_helper_copy_to_user(void __user *to, const void *from,
-				       unsigned long n)
+__rust_helper unsigned long
+rust_helper_copy_to_user(void __user *to, const void *from, unsigned long n)
 {
 	return copy_to_user(to, from, n);
 }
 
 #ifdef INLINE_COPY_FROM_USER
+__rust_helper
 unsigned long rust_helper__copy_from_user(void *to, const void __user *from, unsigned long n)
 {
 	return _inline_copy_from_user(to, from, n);
 }
 
+__rust_helper
 unsigned long rust_helper__copy_to_user(void __user *to, const void *from, unsigned long n)
 {
 	return _inline_copy_to_user(to, from, n);
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#53 lore raw

PATCH v2 24/27 rust: usb: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: Daniel Almeida <[email protected]>

---
 rust/helpers/usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rust/helpers/usb.c +2 -1
index fb2aad0cbf4d26ac7fb1a3f176ee7a1d30800f92..eff1cf7be3c2d10b7e9248252d354eb8a4fd4c94 100644
@@ -2,7 +2,8 @@
 
 #include <linux/usb.h>
 
-struct usb_device *rust_helper_interface_to_usbdev(struct usb_interface *intf)
+__rust_helper struct usb_device *
+rust_helper_interface_to_usbdev(struct usb_interface *intf)
 {
 	return interface_to_usbdev(intf);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
reviewer Reviewed-by on v2 24/27
#54 lore raw

Re: [PATCH v2 24/27] rust: usb: add __rust_helper to helpers

Quoted 36 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: Daniel Almeida <[email protected]>
---
rust/helpers/usb.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
rust/helpers/usb.c +2 -1
index fb2aad0cbf4d26ac7fb1a3f176ee7a1d30800f92..eff1cf7be3c2d10b7e9248252d354eb8a4fd4c94 100644
@@ -2,7 +2,8 @@
 
 #include <linux/usb.h>
 
-struct usb_device *rust_helper_interface_to_usbdev(struct usb_interface *intf)
+__rust_helper struct usb_device *
+rust_helper_interface_to_usbdev(struct usb_interface *intf)
 {
 return interface_to_usbdev(intf);
 }
Signature · 2 lines
-- 
2.52.0.351.gbe84eed79e-goog
author maintainer
#55 lore raw

PATCH v2 25/27 rust: wait: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>

---
 rust/helpers/wait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/wait.c +1 -1
index ae48e33d9da3b0a780722b79b89d8d766efae17b..2dde1e4517809d20d09cb9a355f8005fcb160d4a 100644
@@ -2,7 +2,7 @@
 
 #include <linux/wait.h>
 
-void rust_helper_init_wait(struct wait_queue_entry *wq_entry)
+__rust_helper void rust_helper_init_wait(struct wait_queue_entry *wq_entry)
 {
 	init_wait(wq_entry);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
merge bot Applied
#56 lore raw

[tip: locking/core] rust: wait: Add __rust_helper to helpers

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     5628f0510a4c64908c5d2f36a676b092e1e5d174
Gitweb:        https://git.kernel.org/tip/5628f0510a4c64908c5d2f36a676b092e1e5d174
Author:        Alice Ryhl <[email protected]>
AuthorDate:    Mon, 05 Jan 2026 12:42:38 
Committer:     Boqun Feng <[email protected]>
CommitterDate: Fri, 09 Jan 2026 19:01:42 +08:00

rust: wait: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

---
 rust/helpers/wait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/helpers/wait.c +1 -1
index ae48e33..2dde1e4 100644
@@ -2,7 +2,7 @@
 
 #include <linux/wait.h>
 
-void rust_helper_init_wait(struct wait_queue_entry *wq_entry)
+__rust_helper void rust_helper_init_wait(struct wait_queue_entry *wq_entry)
 {
 	init_wait(wq_entry);
 }
author maintainer
#57 lore raw

PATCH v2 26/27 rust: workqueue: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Tejun Heo <[email protected]>
Cc: Lai Jiangshan <[email protected]>

---
 rust/helpers/workqueue.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
rust/helpers/workqueue.c +5 -3
index b2b82753509bf5dbd0f4ddebb96a95a51e5976b1..ce1c3a5b215028cc04e2f4a7d9c9c60931792e07 100644
@@ -2,9 +2,11 @@
 
 #include <linux/workqueue.h>
 
-void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func,
-				    bool onstack, const char *name,
-				    struct lock_class_key *key)
+__rust_helper void rust_helper_init_work_with_key(struct work_struct *work,
+						  work_func_t func,
+						  bool onstack,
+						  const char *name,
+						  struct lock_class_key *key)
 {
 	__init_work(work, onstack);
 	work->data = (atomic_long_t)WORK_DATA_INIT();
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
author maintainer
#59 lore raw

PATCH v2 27/27 rust: xarray: add __rust_helper to helpers

In reply to Alice Ryhl

This is needed to inline these helpers into Rust code.

---
Cc: Andrew Morton <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Tamir Duberstein <[email protected]>
Cc: Andreas Hindborg <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 rust/helpers/xarray.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
rust/helpers/xarray.c +5 -5
index 60b299f11451d2c4a75e50e25dec4dac13f143f4..08979b3043410ff89d2adc0b2597825115c5100f 100644
@@ -2,27 +2,27 @@
 
 #include <linux/xarray.h>
 
-int rust_helper_xa_err(void *entry)
+__rust_helper int rust_helper_xa_err(void *entry)
 {
 	return xa_err(entry);
 }
 
-void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags)
+__rust_helper void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags)
 {
 	return xa_init_flags(xa, flags);
 }
 
-int rust_helper_xa_trylock(struct xarray *xa)
+__rust_helper int rust_helper_xa_trylock(struct xarray *xa)
 {
 	return xa_trylock(xa);
 }
 
-void rust_helper_xa_lock(struct xarray *xa)
+__rust_helper void rust_helper_xa_lock(struct xarray *xa)
 {
 	return xa_lock(xa);
 }
 
-void rust_helper_xa_unlock(struct xarray *xa)
+__rust_helper void rust_helper_xa_unlock(struct xarray *xa)
 {
 	return xa_unlock(xa);
 }
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Acked-by on v2 27/27
#60 lore raw

Re: [PATCH v2 27/27] rust: xarray: add __rust_helper to helpers

Quoted 6 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Quoted 52 lines

---
Cc: Andrew Morton <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Tamir Duberstein <[email protected]>
Cc: Andreas Hindborg <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 rust/helpers/xarray.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
rust/helpers/xarray.c +5 -6
index 60b299f11451d2c4a75e50e25dec4dac13f143f4..08979b3043410ff89d2adc0b2597825115c5100f 100644
@@ -2,27 +2,27 @@
 
 #include <linux/xarray.h>
 
-int rust_helper_xa_err(void *entry)
+__rust_helper int rust_helper_xa_err(void *entry)
 {
        return xa_err(entry);
 }
 
-void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags)
+__rust_helper void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags)
 {
        return xa_init_flags(xa, flags);
 }
 
-int rust_helper_xa_trylock(struct xarray *xa)
+__rust_helper int rust_helper_xa_trylock(struct xarray *xa)
 {
        return xa_trylock(xa);
 }
 
-void rust_helper_xa_lock(struct xarray *xa)
+__rust_helper void rust_helper_xa_lock(struct xarray *xa)
 {
        return xa_lock(xa);
 }
 
-void rust_helper_xa_unlock(struct xarray *xa)
+__rust_helper void rust_helper_xa_unlock(struct xarray *xa)
 {
        return xa_unlock(xa);
 }
 
--

2.52.0.351.gbe84eed79e-goog

reviewer Applied
#61 lore raw

Re: [PATCH v2 27/27] rust: xarray: add __rust_helper to helpers

In reply to Alice Ryhl
Quoted 3 lines · Alice Ryhl

This is needed to inline these helpers into Rust code.

Applied, thanks!

[27/27] rust: xarray: add __rust_helper to helpers

        commit: c455f19bbe6104debd980bb15515faf716bd81b8

Best regards,

Signature · 1 line
Andreas Hindborg <[email protected]>
Applied
#62 lore raw
In reply to Alice Ryhl
Quoted 5 lines · Alice Ryhl

This patch series adds __rust_helper to every single rust helper. The patches do not depend on each other, so maintainers please go ahead and pick up any patches relevant to your subsystem! Or provide your Acked-by so that Miguel can pick them up.

I queued the following into rust-sync:

rust: barrier: add __rust_helper to helpers
rust: blk: add __rust_helper to helpers
rust: completion: add __rust_helper to helpers
rust: cpu: add __rust_helper to helpers
rust: processor: add __rust_helper to helpers
rust: rcu: add __rust_helper to helpers
rust: refcount: add __rust_helper to helpers
rust: sync: add __rust_helper to helpers
rust: task: add __rust_helper to helpers
rust: time: add __rust_helper to helpers
rust: wait: add __rust_helper to helpers

Thanks!

Regards,
Boqun

Quoted 3 lines

These changes were generated by adding __rust_helper and running ClangFormat. Unrelated formatting changes were removed manually.

[...]

Applied
#63 lore raw
In reply to Alice Ryhl
Quoted 10 lines · Alice Ryhl

rust: bug: add __rust_helper to helpers
rust: err: add __rust_helper to helpers
rust: maple_tree: add __rust_helper to helpers
rust: mm: add __rust_helper to helpers
rust: of: add __rust_helper to helpers
rust: rbtree: add __rust_helper to helpers
rust: slab: add __rust_helper to helpers
rust: uaccess: add __rust_helper to helpers
rust: workqueue: add __rust_helper to helpers

Applied these to rust-next -- thanks everyone!

If someone did not intend for me to take it even if the Acked-by is there (e.g. perhaps Andrew wanted to pick those nevertheless?), then please shout.

With this, and if I didn't miss any message (plus looking at linux-next where I see Greg picked usb), then only clk and jump_label remain (plus any new incoming one).

Let's see if we can get them done next cycle then.

Cheers,
Miguel

Applied
#64 lore raw
In reply to Alice Ryhl
Quoted 3 lines · Alice Ryhl

rust: clk: add __rust_helper to helpers
rust: jump_label: add __rust_helper to helpers

Applied these to rust-next -- thanks everyone!

With these, the series is complete.

Cheers,
Miguel