Skip to contentSkip to conversation

alpha: fix build after vmlinux.lds.S cleanup (really)

PATCH New Daniele Calore 1 participant 1 message Oct 15, 2009 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alpha: fix build after vmlinux.lds.S cleanup (really)

Fix Build error on alpha:
arch/alpha/kernel/vmlinux.lds:235: undefined symbol `THREAD_SIZE' referenced in expression
make: *** [.tmp_vmlinux1] Error 1

THREAD_SIZE is defined under: "asm/thread_info.h", but inside an "#ifndef __ASSEMBLY__" directive.
To solve the build, just move the define outside the #ifndef.

---

arch/alpha/include/asm/thread_info.h +2 -2
index 5076a88..e7a07f6 100644
@@ -50,12 +50,12 @@ struct thread_info {
 register struct thread_info *__current_thread_info __asm__("$8");
 #define current_thread_info()  __current_thread_info
 
+#endif /* !__ASSEMBLY__ */
+
 /* Thread information allocation.  */
 #define THREAD_SIZE_ORDER 1
 #define THREAD_SIZE (2*PAGE_SIZE)
 
-#endif /* __ASSEMBLY__ */
-
 #define PREEMPT_ACTIVE		0x40000000
 
 /*