summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-11-24 23:26:17 +0900
committerMiguel Ojeda <ojeda@kernel.org>2023-12-13 01:09:55 +0100
commitdc92ac9f6383a5026d6070a79035ebcc28c59d1b (patch)
tree4d4b4b78b204740e9615488ab03d905443c5733c /rust
parentc3f41b00307f796756ec494b90c9e238800a0ff8 (diff)
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>
Diffstat (limited to 'rust')
-rw-r--r--rust/exports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/exports.c b/rust/exports.c
index 83e2a7070cae..3803c21d1403 100644
--- a/rust/exports.c
+++ b/rust/exports.c
@@ -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)