Commit a0469f98 authored by Masahiro Yamada's avatar Masahiro Yamada

export.h: remove defined(__KERNEL__), which is no longer needed

The conditional, define(__KERNEL__), was added by commit f2355416
("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 b2c5cdcf ("modpost: remove symbol prefix support"),
modpost no longer includes linux/export.h, thus the define(__KERNEL__)
is unneeded.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarNicolas Pitre <nico@fluxnic.net>
parent 6863f564
...@@ -20,7 +20,7 @@ extern struct module __this_module; ...@@ -20,7 +20,7 @@ extern struct module __this_module;
#ifdef CONFIG_MODULES #ifdef CONFIG_MODULES
#if defined(__KERNEL__) && !defined(__GENKSYMS__) #if !defined(__GENKSYMS__)
#ifdef CONFIG_MODVERSIONS #ifdef CONFIG_MODVERSIONS
/* Mark the CRC weak since genksyms apparently decides not to /* Mark the CRC weak since genksyms apparently decides not to
* generate a checksums for some symbols */ * generate a checksums for some symbols */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment