]> git.itanic.dy.fi Git - linux-stable/commitdiff
rust: replace <linux/module.h> with <linux/export.h> in rust/exports.c
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 24 Nov 2023 14:26:17 +0000 (23:26 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 13 Dec 2023 00:09:55 +0000 (01:09 +0100)
<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>
rust/exports.c

index 83e2a7070cae88bb3ff06626b124e94565568bb8..3803c21d1403efb8de8ddc4ed63f1298269e3f0c 100644 (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)