[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211110015708.6512-1-rdunlap@infradead.org>
Date: Tue, 9 Nov 2021 17:57:08 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Linux Kernel Functional Testing <lkft@...aro.org>,
Naresh Kamboju <naresh.kamboju@...aro.org>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
Helge Deller <deller@....de>, linux-parisc@...r.kernel.org
Subject: [PATCH -next] parisc: stacktrace: add <linux/kernel.h> to prevent build error
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@...radead.org>
Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
Cc: Naresh Kamboju <naresh.kamboju@...aro.org>
Cc: "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>
Cc: Helge Deller <deller@....de>
Cc: linux-parisc@...r.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>
Powered by blists - more mailing lists