Skip to content

Commit a50107e

Browse files
authored
Merge pull request #637 from liuw/export-functions
rust: helpers: export more functions
2 parents 90965d5 + 5569058 commit a50107e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/helpers.c

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ __noreturn void rust_helper_BUG(void)
2323
{
2424
BUG();
2525
}
26+
EXPORT_SYMBOL_GPL(rust_helper_BUG);
2627

2728
void rust_helper_clk_disable_unprepare(struct clk *clk)
2829
{
@@ -40,16 +41,19 @@ unsigned long rust_helper_copy_from_user(void *to, const void __user *from, unsi
4041
{
4142
return copy_from_user(to, from, n);
4243
}
44+
EXPORT_SYMBOL_GPL(rust_helper_copy_from_user);
4345

4446
unsigned long rust_helper_copy_to_user(void __user *to, const void *from, unsigned long n)
4547
{
4648
return copy_to_user(to, from, n);
4749
}
50+
EXPORT_SYMBOL_GPL(rust_helper_copy_to_user);
4851

4952
unsigned long rust_helper_clear_user(void __user *to, unsigned long n)
5053
{
5154
return clear_user(to, n);
5255
}
56+
EXPORT_SYMBOL_GPL(rust_helper_clear_user);
5357

5458
void __iomem *rust_helper_ioremap(resource_size_t offset, unsigned long size)
5559
{

0 commit comments

Comments
 (0)