]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8918/2: only build return_address() if needed
authorBen Dooks <ben-linux@fluff.org>
Mon, 4 Nov 2019 17:15:15 +0000 (18:15 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Nov 2019 22:21:07 +0000 (22:21 +0000)
commit3aa7e2ee6c4ffd9f988589b9f2a991e02a1ac1c8
tree9f7e2fa0f16c00c156034299e46838f36451c039
parentbba459dfda7ee9b1e00f84168b383d1b279b22e0
ARM: 8918/2: only build return_address() if needed

The system currently warns if the config conditions for
building return_address in arch/arm/kernel/return_address.c
are not met, leaving just an EXPORT_SYMBOL_GPL(return_address)
of a function defined to be 'static linline'.
This is a result of ca5a27c14d8a ("ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h").

Since we're not going to build anything other than an exported
symbol for something that is already being defined to be an
inline-able return of NULL, just avoid building the code to
remove the following warning:

Fixes: ca5a27c14d8a ("ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h")
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/Makefile
arch/arm/kernel/return_address.c