]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
export.h: remove defined(__KERNEL__), which is no longer needed
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 9 Sep 2019 10:53:16 +0000 (19:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 10 Sep 2019 14:51:05 +0000 (23:51 +0900)
The conditional, define(__KERNEL__), was added by commit f235541699bc
("export.h: allow for per-symbol configurable EXPORT_SYMBOL()").

It was needed at that time to avoid the build error of modpost
with CONFIG_TRIM_UNUSED_KSYMS=y.

Since commit b2c5cdcfd4bc ("modpost: remove symbol prefix support"),
modpost no longer includes linux/export.h, thus the define(__KERNEL__)
is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
include/linux/export.h

index fd8711ed9ac41de61efae43232c6e61983df93bc..cdd98a0d918c389823f1112778102f2d1bcfca61 100644 (file)
@@ -20,7 +20,7 @@ extern struct module __this_module;
 
 #ifdef CONFIG_MODULES
 
-#if defined(__KERNEL__) && !defined(__GENKSYMS__)
+#if !defined(__GENKSYMS__)
 #ifdef CONFIG_MODVERSIONS
 /* Mark the CRC weak since genksyms apparently decides not to
  * generate a checksums for some symbols */