Skip to content

Commit 2f23d32

Browse files
committed
Remove wrong sentence about mangling in v0 scheme
@bjorn3 helpfully noted that symbols do not stay the same across `rustc` compiler versions. The overall sentence is anyway a bit misleading, because the "hard" requirement is the second one: mixing `rustc` compiler versions is not something we will support. IIRC I was thinking about possible patch level fixes to `rustc` stable versions when I wrote that. Link: #52 (comment) Signed-off-by: Miguel Ojeda <[email protected]>
1 parent c9a72e7 commit 2f23d32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/exports.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
// the entire `include/linux/export.h` logic in Rust.
55
//
66
// This requires the Rust's new/future `v0` mangling scheme because the default
7-
// one ("legacy") 1) uses a hash suffix which cannot be predicted across
8-
// compiler versions and 2) uses invalid characters for C identifiers
9-
// (thus we cannot use the `EXPORT_SYMBOL_*` macros).
7+
// one ("legacy") uses invalid characters for C identifiers (thus we cannot use
8+
// the `EXPORT_SYMBOL_*` macros).
109

1110
#include <linux/module.h>
1211

0 commit comments

Comments
 (0)