[PATCH 3/8] openrisc: Make THREAD_SIZE available to vmlinux.lds
From: David Howells
Date: Wed Jan 17 2018 - 10:25:40 EST
Make THREAD_SIZE available to vmlinux.lds on openrisc by including
asm/thread_info.h the linker script.
This allows init_stack to be allocated in the linker script in a subsequent
patch.
Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Acked-by: Stafford Horne <shorne@xxxxxxxxx>
cc: Jonas Bonn <jonas@xxxxxxxxxxxx>
cc: Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx>
cc: openrisc@xxxxxxxxxxxxxxxxxxxx
---
arch/openrisc/kernel/vmlinux.lds.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index 00ddb7804be4..953bdcd54efe 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -28,6 +28,7 @@
#include <asm/page.h>
#include <asm/cache.h>
+#include <asm/thread_info.h>
#include <asm-generic/vmlinux.lds.h>
#ifdef __OR1K__