summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-09-20 07:21:30 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2023-09-20 14:03:20 +0200
commit1b6ceeb99ee05eb2c62a9e5512623e63cf8490ba (patch)
tree5e55e0e8ed014cf8041981b9aaddaab308be7e7a /arch/xtensa
parentxtensa: signal: include headers for function prototypes (diff)
downloadlinux-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.c1
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>