Skip to content

Commit 66fb10b

Browse files
dirkbehmeDanilo Krummrich
authored andcommitted
rust: dma: add missing __rust_helper annotations
The commit d893235 ("rust: dma: add helpers for architectures without CONFIG_HAS_DMA") missed adding the __rust_helper annotations. Add them. Reported-by: Gary Guo <gary@garyguo.net> 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> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260126071738.1670967-1-dirk.behme@de.bosch.com [ Fix minor checkpatch.pl warning. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent 408e4f9 commit 66fb10b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rust/helpers/dma.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ __rust_helper int rust_helper_dma_set_mask_and_coherent(struct device *dev,
2323
return dma_set_mask_and_coherent(dev, mask);
2424
}
2525

26-
int rust_helper_dma_set_mask(struct device *dev, u64 mask)
26+
__rust_helper int rust_helper_dma_set_mask(struct device *dev, u64 mask)
2727
{
2828
return dma_set_mask(dev, mask);
2929
}
3030

31-
int rust_helper_dma_set_coherent_mask(struct device *dev, u64 mask)
31+
__rust_helper int rust_helper_dma_set_coherent_mask(struct device *dev, u64 mask)
3232
{
3333
return dma_set_coherent_mask(dev, mask);
3434
}
3535

36-
int rust_helper_dma_map_sgtable(struct device *dev, struct sg_table *sgt,
37-
enum dma_data_direction dir, unsigned long attrs)
36+
__rust_helper int rust_helper_dma_map_sgtable(struct device *dev, struct sg_table *sgt,
37+
enum dma_data_direction dir, unsigned long attrs)
3838
{
3939
return dma_map_sgtable(dev, sgt, dir, attrs);
4040
}
4141

42-
size_t rust_helper_dma_max_mapping_size(struct device *dev)
42+
__rust_helper size_t rust_helper_dma_max_mapping_size(struct device *dev)
4343
{
4444
return dma_max_mapping_size(dev);
4545
}

0 commit comments

Comments
 (0)