1

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: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Link: https://lore.kernel.org/r/20231124142617.713096-1-masahiroy@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
Masahiro Yamada 2023-11-24 23:26:17 +09:00 committed by Miguel Ojeda
parent c3f41b0030
commit dc92ac9f63

View File

@ -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)