summaryrefslogtreecommitdiffstats
path: root/include/linux/export.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-09-09 19:53:16 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-09-10 23:51:05 +0900
commita0469f989fe1d051820cda7ead496f1a7371f3d8 (patch)
tree8de56026595dde0c6b4f006ce21011fedb13ea69 /include/linux/export.h
parent6863f5643dd717376c2fdc85a47a00f9d738a834 (diff)
downloadlinux-a0469f989fe1d051820cda7ead496f1a7371f3d8.tar.gz
linux-a0469f989fe1d051820cda7ead496f1a7371f3d8.tar.bz2
linux-a0469f989fe1d051820cda7ead496f1a7371f3d8.zip
export.h: remove defined(__KERNEL__), which is no longer needed
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>
Diffstat (limited to 'include/linux/export.h')
-rw-r--r--include/linux/export.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/export.h b/include/linux/export.h
index fd8711ed9ac4..cdd98a0d918c 100644
--- a/include/linux/export.h
+++ b/include/linux/export.h
@@ -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 */