Commit dc92ac9f authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Miguel Ojeda

rust: replace <linux/module.h> with <linux/export.h> in rust/exports.c

<linux/export.h> is the right header to include for using
EXPORT_SYMBOL_GPL. <linux/module.h> includes much more bloat.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Link: https://lore.kernel.org/r/20231124142617.713096-1-masahiroy@kernel.orgSigned-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent c3f41b00
......@@ -11,7 +11,7 @@
* accidentally exposed.
*/
#include <linux/module.h>
#include <linux/export.h>
#define EXPORT_SYMBOL_RUST_GPL(sym) extern int sym; EXPORT_SYMBOL_GPL(sym)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment