diff options
author | Masahiro Yamada <[email protected]> | 2023-11-24 23:26:17 +0900 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-12-13 01:09:55 +0100 |
commit | dc92ac9f6383a5026d6070a79035ebcc28c59d1b (patch) | |
tree | 4d4b4b78b204740e9615488ab03d905443c5733c | |
parent | c3f41b00307f796756ec494b90c9e238800a0ff8 (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 <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
-rw-r--r-- | rust/exports.c | 2 |
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) |