@@ -31,55 +31,55 @@ void rust_helper_spin_lock_init(spinlock_t *lock, const char *name,
31
31
spin_lock_init (lock );
32
32
#endif
33
33
}
34
- EXPORT_SYMBOL (rust_helper_spin_lock_init );
34
+ EXPORT_SYMBOL_GPL (rust_helper_spin_lock_init );
35
35
36
36
void rust_helper_spin_lock (spinlock_t * lock )
37
37
{
38
38
spin_lock (lock );
39
39
}
40
- EXPORT_SYMBOL (rust_helper_spin_lock );
40
+ EXPORT_SYMBOL_GPL (rust_helper_spin_lock );
41
41
42
42
void rust_helper_spin_unlock (spinlock_t * lock )
43
43
{
44
44
spin_unlock (lock );
45
45
}
46
- EXPORT_SYMBOL (rust_helper_spin_unlock );
46
+ EXPORT_SYMBOL_GPL (rust_helper_spin_unlock );
47
47
48
48
void rust_helper_init_wait (struct wait_queue_entry * wq_entry )
49
49
{
50
50
init_wait (wq_entry );
51
51
}
52
- EXPORT_SYMBOL (rust_helper_init_wait );
52
+ EXPORT_SYMBOL_GPL (rust_helper_init_wait );
53
53
54
54
int rust_helper_current_pid (void )
55
55
{
56
56
return current -> pid ;
57
57
}
58
- EXPORT_SYMBOL (rust_helper_current_pid );
58
+ EXPORT_SYMBOL_GPL (rust_helper_current_pid );
59
59
60
60
int rust_helper_signal_pending (void )
61
61
{
62
62
return signal_pending (current );
63
63
}
64
- EXPORT_SYMBOL (rust_helper_signal_pending );
64
+ EXPORT_SYMBOL_GPL (rust_helper_signal_pending );
65
65
66
66
struct page * rust_helper_alloc_pages (gfp_t gfp_mask , unsigned int order )
67
67
{
68
68
return alloc_pages (gfp_mask , order );
69
69
}
70
- EXPORT_SYMBOL (rust_helper_alloc_pages );
70
+ EXPORT_SYMBOL_GPL (rust_helper_alloc_pages );
71
71
72
72
void * rust_helper_kmap (struct page * page )
73
73
{
74
74
return kmap (page );
75
75
}
76
- EXPORT_SYMBOL (rust_helper_kmap );
76
+ EXPORT_SYMBOL_GPL (rust_helper_kmap );
77
77
78
78
void rust_helper_kunmap (struct page * page )
79
79
{
80
80
return kunmap (page );
81
81
}
82
- EXPORT_SYMBOL (rust_helper_kunmap );
82
+ EXPORT_SYMBOL_GPL (rust_helper_kunmap );
83
83
84
84
// See https://github.com/rust-lang/rust-bindgen/issues/1671
85
85
static_assert (__builtin_types_compatible_p (size_t , uintptr_t ),
0 commit comments