* [PATCH -next] parisc: stacktrace: add <linux/kernel.h> to prevent build error
@ 2021-11-10 1:57 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2021-11-10 1:57 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Linux Kernel Functional Testing, Naresh Kamboju,
James E.J. Bottomley, Helge Deller, linux-parisc
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(+)
--- 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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-10 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 1:57 [PATCH -next] parisc: stacktrace: add <linux/kernel.h> to prevent build error Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).