diff mbox series

[-next] parisc: stacktrace: add <linux/kernel.h> to prevent build error

Message ID 20211110015708.6512-1-rdunlap@infradead.org (mailing list archive)
State Superseded, archived
Headers show
Series [-next] parisc: stacktrace: add <linux/kernel.h> to prevent build error | expand

Commit Message

Randy Dunlap Nov. 10, 2021, 1:57 a.m. UTC
stacktrace.c uses __kernel_text_address() so it needs to
include <linux/kernel.h>.  Otherwise there is a build error:

arch/parisc/kernel/stacktrace.c: In function 'walk_stackframe':
arch/parisc/kernel/stacktrace.c:25:21: error: implicit declaration of
function '__kernel_text_address'
[-Werror=implicit-function-declaration]
   25 |                 if (__kernel_text_address(info.ip))

Fixes: aeb1e833a4c3 ("parisc: Switch to ARCH_STACKWALK implementation")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
---
 arch/parisc/kernel/stacktrace.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

--- linux-next-20211109.orig/arch/parisc/kernel/stacktrace.c
+++ linux-next-20211109/arch/parisc/kernel/stacktrace.c
@@ -8,6 +8,7 @@ 
  *
  *  TODO: Userspace stacktrace (CONFIG_USER_STACKTRACE_SUPPORT)
  */
+#include <linux/kernel.h>
 #include <linux/stacktrace.h>
 
 #include <asm/unwind.h>