Skip to content

Commit dc92ac9

Browse files
masahir0yojeda
authored andcommitted
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]>
1 parent c3f41b0 commit dc92ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/exports.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* accidentally exposed.
1212
*/
1313

14-
#include <linux/module.h>
14+
#include <linux/export.h>
1515

1616
#define EXPORT_SYMBOL_RUST_GPL(sym) extern int sym; EXPORT_SYMBOL_GPL(sym)
1717

0 commit comments

Comments
 (0)