diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2023-09-20 07:21:30 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-09-20 14:03:20 +0200 |
commit | 1b6ceeb99ee05eb2c62a9e5512623e63cf8490ba (patch) | |
tree | 5e55e0e8ed014cf8041981b9aaddaab308be7e7a /arch/xtensa | |
parent | xtensa: signal: include headers for function prototypes (diff) | |
download | linux-1b6ceeb99ee05eb2c62a9e5512623e63cf8490ba.tar.xz linux-1b6ceeb99ee05eb2c62a9e5512623e63cf8490ba.zip |
xtensa: stacktrace: include <asm/ftrace.h> for prototype
Use <asm/ftrace.h> to prevent a build warning:
arch/xtensa/kernel/stacktrace.c:263:15: warning: no previous prototype for 'return_address' [-Wmissing-prototypes]
263 | unsigned long return_address(unsigned level)
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-8-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/stacktrace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/stacktrace.c b/arch/xtensa/kernel/stacktrace.c index f643ea5e36da..831ffb648bda 100644 --- a/arch/xtensa/kernel/stacktrace.c +++ b/arch/xtensa/kernel/stacktrace.c @@ -12,6 +12,7 @@ #include <linux/sched.h> #include <linux/stacktrace.h> +#include <asm/ftrace.h> #include <asm/stacktrace.h> #include <asm/traps.h> #include <linux/uaccess.h> |