public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rust: dma: add missing __rust_helper annotations
@ 2026-01-26  7:17 Dirk Behme
  2026-01-26  9:26 ` Alice Ryhl
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dirk Behme @ 2026-01-26  7:17 UTC (permalink / raw)
  To: rust-for-linux, beata.michalska, gary, dakr
  Cc: dirk.behme, ojeda, boqun.feng, a.hindborg, aliceryhl

The commit d8932355f8c5 ("rust: dma: add helpers for architectures
without CONFIG_HAS_DMA") missed adding the __rust_helper annotations.
Add them.

Fixes: d8932355f8c5 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA")
Closes: https://lore.kernel.org/rust-for-linux/DFW4F5OSDO7A.TBUOX6RCN8G7@garyguo.net/
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
---
Note: This is against linux-next.git next-20260123

 rust/helpers/dma.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rust/helpers/dma.c b/rust/helpers/dma.c
index e7defeecda71b..6514ce1647950 100644
--- a/rust/helpers/dma.c
+++ b/rust/helpers/dma.c
@@ -23,23 +23,23 @@ __rust_helper int rust_helper_dma_set_mask_and_coherent(struct device *dev,
 	return dma_set_mask_and_coherent(dev, mask);
 }
 
-int rust_helper_dma_set_mask(struct device *dev, u64 mask)
+__rust_helper int rust_helper_dma_set_mask(struct device *dev, u64 mask)
 {
 	return dma_set_mask(dev, mask);
 }
 
-int rust_helper_dma_set_coherent_mask(struct device *dev, u64 mask)
+__rust_helper int rust_helper_dma_set_coherent_mask(struct device *dev, u64 mask)
 {
 	return dma_set_coherent_mask(dev, mask);
 }
 
-int rust_helper_dma_map_sgtable(struct device *dev, struct sg_table *sgt,
+__rust_helper int rust_helper_dma_map_sgtable(struct device *dev, struct sg_table *sgt,
 				enum dma_data_direction dir, unsigned long attrs)
 {
 	return dma_map_sgtable(dev, sgt, dir, attrs);
 }
 
-size_t rust_helper_dma_max_mapping_size(struct device *dev)
+__rust_helper size_t rust_helper_dma_max_mapping_size(struct device *dev)
 {
 	return dma_max_mapping_size(dev);
 }
-- 
2.48.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: dma: add missing __rust_helper annotations
  2026-01-26  7:17 [PATCH] rust: dma: add missing __rust_helper annotations Dirk Behme
@ 2026-01-26  9:26 ` Alice Ryhl
  2026-01-26 12:22 ` Gary Guo
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Alice Ryhl @ 2026-01-26  9:26 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, beata.michalska, gary, dakr, ojeda, boqun.feng,
	a.hindborg

On Mon, Jan 26, 2026 at 08:17:38AM +0100, Dirk Behme wrote:
> The commit d8932355f8c5 ("rust: dma: add helpers for architectures
> without CONFIG_HAS_DMA") missed adding the __rust_helper annotations.
> Add them.
> 
> Fixes: d8932355f8c5 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA")
> Closes: https://lore.kernel.org/rust-for-linux/DFW4F5OSDO7A.TBUOX6RCN8G7@garyguo.net/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>

Thanks

Reviewed-by: Alice Ryhl <aliceryhl@google.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: dma: add missing __rust_helper annotations
  2026-01-26  7:17 [PATCH] rust: dma: add missing __rust_helper annotations Dirk Behme
  2026-01-26  9:26 ` Alice Ryhl
@ 2026-01-26 12:22 ` Gary Guo
  2026-01-26 13:47 ` Danilo Krummrich
  2026-02-06 19:26 ` Danilo Krummrich
  3 siblings, 0 replies; 5+ messages in thread
From: Gary Guo @ 2026-01-26 12:22 UTC (permalink / raw)
  To: Dirk Behme, rust-for-linux, beata.michalska, gary, dakr
  Cc: ojeda, boqun.feng, a.hindborg, aliceryhl

On Mon Jan 26, 2026 at 7:17 AM GMT, Dirk Behme wrote:
> The commit d8932355f8c5 ("rust: dma: add helpers for architectures
> without CONFIG_HAS_DMA") missed adding the __rust_helper annotations.
> Add them.
> 
> Fixes: d8932355f8c5 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA")
> Closes: https://lore.kernel.org/rust-for-linux/DFW4F5OSDO7A.TBUOX6RCN8G7@garyguo.net/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>

Reviewed-by: Gary Guo <gary@garyguo.net>

> ---
> Note: This is against linux-next.git next-20260123
> 
>  rust/helpers/dma.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: dma: add missing __rust_helper annotations
  2026-01-26  7:17 [PATCH] rust: dma: add missing __rust_helper annotations Dirk Behme
  2026-01-26  9:26 ` Alice Ryhl
  2026-01-26 12:22 ` Gary Guo
@ 2026-01-26 13:47 ` Danilo Krummrich
  2026-02-06 19:26 ` Danilo Krummrich
  3 siblings, 0 replies; 5+ messages in thread
From: Danilo Krummrich @ 2026-01-26 13:47 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, beata.michalska, gary, ojeda, boqun.feng,
	a.hindborg, aliceryhl

On Mon Jan 26, 2026 at 8:17 AM CET, Dirk Behme wrote:
> The commit d8932355f8c5 ("rust: dma: add helpers for architectures
> without CONFIG_HAS_DMA") missed adding the __rust_helper annotations.
> Add them.
>
> Fixes: d8932355f8c5 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA")

I think we don't need a Fixes: tag for this, but given the Closes: tag below,
I'd add:

Reported-by: Gary Guo <gary@garyguo.net>

(No need to resend, I can change it when I pick this one up.)

> Closes: https://lore.kernel.org/rust-for-linux/DFW4F5OSDO7A.TBUOX6RCN8G7@garyguo.net/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: dma: add missing __rust_helper annotations
  2026-01-26  7:17 [PATCH] rust: dma: add missing __rust_helper annotations Dirk Behme
                   ` (2 preceding siblings ...)
  2026-01-26 13:47 ` Danilo Krummrich
@ 2026-02-06 19:26 ` Danilo Krummrich
  3 siblings, 0 replies; 5+ messages in thread
From: Danilo Krummrich @ 2026-02-06 19:26 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, beata.michalska, gary, ojeda, boqun.feng,
	a.hindborg, aliceryhl

On Mon Jan 26, 2026 at 8:17 AM CET, Dirk Behme wrote:
> The commit d8932355f8c5 ("rust: dma: add helpers for architectures
> without CONFIG_HAS_DMA") missed adding the __rust_helper annotations.
> Add them.
>
> Fixes: d8932355f8c5 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA")
> Closes: https://lore.kernel.org/rust-for-linux/DFW4F5OSDO7A.TBUOX6RCN8G7@garyguo.net/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>

Applied to driver-core-testing, thanks!

    [ Fix minor checkpatch.pl warning. - Danilo ]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-06 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26  7:17 [PATCH] rust: dma: add missing __rust_helper annotations Dirk Behme
2026-01-26  9:26 ` Alice Ryhl
2026-01-26 12:22 ` Gary Guo
2026-01-26 13:47 ` Danilo Krummrich
2026-02-06 19:26 ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox