Ben Dooks a8146f1490 ARM: 8918/2: only build return_address() if needed
commit fb033c95c94ca1ee3d16e04ebdb85d65fb55fff8 upstream.

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 aeea3592a13b ("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: aeea3592a13b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-12 08:56:40 +02:00
..
2019-09-03 22:09:46 +02:00
2019-09-30 10:04:28 -07:00
2019-07-19 17:05:08 -07:00
2019-07-19 17:05:08 -07:00
2019-07-19 17:05:08 -07:00
2019-06-17 05:14:24 -07:00
2019-07-19 17:05:08 -07:00
2019-07-19 17:05:08 -07:00
2020-11-05 11:43:37 +01:00
2019-09-22 09:39:09 -07:00