Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: dma: add missing __rust_helper annotations

The commit d8932355f8c5 ("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>

authored by

Dirk Behme and committed by
Danilo Krummrich
66fb10bc 408e4f94

+5 -5
+5 -5
rust/helpers/dma.c
··· 23 23 return dma_set_mask_and_coherent(dev, mask); 24 24 } 25 25 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) 27 27 { 28 28 return dma_set_mask(dev, mask); 29 29 } 30 30 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) 32 32 { 33 33 return dma_set_coherent_mask(dev, mask); 34 34 } 35 35 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) 38 38 { 39 39 return dma_map_sgtable(dev, sgt, dir, attrs); 40 40 } 41 41 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) 43 43 { 44 44 return dma_max_mapping_size(dev); 45 45 }