linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] export.h: remove defined(__KERNEL__)
@ 2019-09-09 10:53 Masahiro Yamada
  2019-09-09 10:53 ` [PATCH 2/2] export.h, genksyms: do not make genksyms calculate CRC of trimmed symbols Masahiro Yamada
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Masahiro Yamada @ 2019-09-09 10:53 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Arnd Bergmann, Denis Efremov, Nicolas Pitre, Masahiro Yamada,
	linux-kernel

This line was touched by commit f235541699bc ("export.h: allow for
per-symbol configurable EXPORT_SYMBOL()"), but the commit log did
not explain why.

CONFIG_TRIM_UNUSED_KSYMS works for me without defined(__KERNEL__).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 include/linux/export.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-12 11:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 10:53 [PATCH 1/2] export.h: remove defined(__KERNEL__) Masahiro Yamada
2019-09-09 10:53 ` [PATCH 2/2] export.h, genksyms: do not make genksyms calculate CRC of trimmed symbols Masahiro Yamada
2019-09-09 13:43   ` Arnd Bergmann
2019-09-09 13:48 ` [PATCH 1/2] export.h: remove defined(__KERNEL__) Nicolas Pitre
2019-09-09 14:34   ` Masahiro Yamada
2019-09-09 16:06     ` Nicolas Pitre
2019-09-10  2:10       ` Masahiro Yamada
2019-09-10  2:21         ` Nicolas Pitre
2019-09-12 11:48 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).