diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-11-24 16:30:32 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-11-28 11:47:15 +0300 |
commit | 7eed2e09abf0a0064a7e3f4a911b37d71202dfa4 (patch) | |
tree | 8c33fd1d185503919d2ed06e6372ae3f5aeec257 /scripts/conmakehash.c | |
parent | b3e06dc3f0256441e15ef9967ecf3500d3e4f022 (diff) | |
download | linux-7eed2e09abf0a0064a7e3f4a911b37d71202dfa4.tar.xz |
s390/ftrace: provide working ftrace_return_address()
The common code ftrace_return_address(n), which is just a wrapper for
__builtin_return_address(n), will only work for n > 0 if CONFIG_FRAME_POINTER
is set to 'y'. Otherwise it will return 0.
Since on s390 we will never have that config option set to 'y'
ftrace_return_address() won't work at all for n > 0.
Luckily we always compile the kernel with -mkernel-backchain which
in turn means that __builtin_return_address(n) will always work.
So let ftrace_return_address(n) map to __builtin_return_address(n).
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'scripts/conmakehash.c')
0 files changed, 0 insertions, 0 deletions