]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dumpstack: implement and use return_address()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 2 May 2016 12:38:29 +0000 (14:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 May 2016 14:29:45 +0000 (16:29 +0200)
commitd1fae9dfd2d400f82123564ddfe5e9e38e4e6235
tree5766fa5aa8375263757f24819219175ccf8cfaa5
parent57d778a5141bbc35efdecaa4fdb7e0b5d58125ee
s390/dumpstack: implement and use return_address()

Implement return_address() and use it instead of __builtin_return_address(n).

__builtin_return_address(n) is not guaranteed to work for n > 0,
therefore implement a private return_address() function which walks
the stack frames and returns the proper return address.

This way we get also rid of a compile warning which gcc 6.1 emits and
look like all other architectures.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ftrace.h
arch/s390/kernel/dumpstack.c