linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: don't export unused return_address()
@ 2019-09-06 15:46 Arnd Bergmann
  2019-09-24  5:15 ` Masahiro Yamada
  2019-10-01 14:31 ` Geert Uytterhoeven
  0 siblings, 2 replies; 13+ messages in thread
From: Arnd Bergmann @ 2019-09-06 15:46 UTC (permalink / raw)
  To: Russell King
  Cc: Arnd Bergmann, Thomas Gleixner, Enrico Weigelt, linux-arm-kernel,
	linux-kernel

Without the frame pointer enabled, return_address() is an inline
function and does not need to be exported, as shown by this warning:

WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL

Move the EXPORT_SYMBOL_GPL() into the #ifdef as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/kernel/return_address.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
index b0d2f1fe891d..fb0fc1910102 100644
--- a/arch/arm/kernel/return_address.c
+++ b/arch/arm/kernel/return_address.c
@@ -53,6 +53,7 @@ void *return_address(unsigned int level)
 		return NULL;
 }
 
+EXPORT_SYMBOL_GPL(return_address);
+
 #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */
 
-EXPORT_SYMBOL_GPL(return_address);
-- 
2.20.0


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

end of thread, other threads:[~2019-11-20 10:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 15:46 [PATCH] ARM: don't export unused return_address() Arnd Bergmann
2019-09-24  5:15 ` Masahiro Yamada
2019-10-01 14:31 ` Geert Uytterhoeven
2019-11-13 11:40   ` Masahiro Yamada
2019-11-13 11:45     ` Russell King - ARM Linux admin
2019-11-13 13:15       ` Geert Uytterhoeven
2019-11-13 17:00         ` Russell King - ARM Linux admin
2019-11-20  9:02           ` Masahiro Yamada
2019-11-20  9:07             ` Russell King - ARM Linux admin
2019-11-20  9:42               ` Masahiro Yamada
2019-11-20  9:51                 ` Russell King - ARM Linux admin
2019-11-20 10:07                   ` Russell King - ARM Linux admin
2019-11-20 10:23                     ` 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).