linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] arm64: add missing header dependencies
@ 2022-05-09  6:17 Gaosheng Cui
  2022-05-10 10:40 ` Will Deacon
  2022-05-13  2:57 ` kernel test robot
  0 siblings, 2 replies; 4+ messages in thread
From: Gaosheng Cui @ 2022-05-09  6:17 UTC (permalink / raw)
  To: catalin.marinas, cuigaosheng1, will, broonie, pcc, mark.rutland,
	keescook, daniel.kiss
  Cc: linux-arm-kernel, linux-kernel, wangweiyang2, gongruiqi1

We get one error when building module with processor.h:

./arch/arm64/include/asm/processor.h:263:36: error: implicit declaration of function ‘task_stack_page’;
  ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
./arch/arm64/include/asm/processor.h:266:42: note: in expansion of macro ‘task_pt_regs’
 #define KSTK_ESP(tsk) user_stack_pointer(task_pt_regs(tsk))

task_stack_page is declared in linux/sched/task_stack.h, so this patch
add the missing header dependencies.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/arm64/include/asm/processor.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h
index 73e38d9a540c..1c239841c4d6 100644
--- a/arch/arm64/include/asm/processor.h
+++ b/arch/arm64/include/asm/processor.h
@@ -28,6 +28,7 @@
 #include <linux/build_bug.h>
 #include <linux/cache.h>
 #include <linux/init.h>
+#include <linux/sched/task_stack.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
 #include <linux/thread_info.h>
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-13  2:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  6:17 [PATCH -next] arm64: add missing header dependencies Gaosheng Cui
2022-05-10 10:40 ` Will Deacon
     [not found]   ` <3b692d9f-0f76-33b8-0c22-909a24377e33@huawei.com>
2022-05-11  8:30     ` Mark Rutland
2022-05-13  2:57 ` kernel test robot

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).