linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.32-rc4] alpha: fix build after vmlinux.lds.S cleanup (really)
@ 2009-10-14 10:06 Daniele Calore
  0 siblings, 0 replies; 2+ messages in thread
From: Daniele Calore @ 2009-10-14 10:06 UTC (permalink / raw)
  To: rth; +Cc: linux-alpha, linux-kernel, orkaan

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.

Signed-off-by: Daniele Calore <orkaan@orkaan.org>

---
diff --git a/arch/alpha/include/asm/thread_info.h b/arch/alpha/include/asm/thread_info.h
index 5076a88..e7a07f6 100644
--- a/arch/alpha/include/asm/thread_info.h
+++ b/arch/alpha/include/asm/thread_info.h
@@ -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
 
 /*

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [PATCH 2.6.32-rc4] alpha: fix build after vmlinux.lds.S cleanup (really)
@ 2009-10-15 12:04 Daniele Calore
  0 siblings, 0 replies; 2+ messages in thread
From: Daniele Calore @ 2009-10-15 12:04 UTC (permalink / raw)
  To: rth, linux-alpha, linux-kernel, ink; +Cc: orkaan

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.

Signed-off-by: Daniele Calore <orkaan@orkaan.org>

---
diff --git a/arch/alpha/include/asm/thread_info.h b/arch/alpha/include/asm/thread_info.h
index 5076a88..e7a07f6 100644
--- a/arch/alpha/include/asm/thread_info.h
+++ b/arch/alpha/include/asm/thread_info.h
@@ -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
 
 /*


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

end of thread, other threads:[~2009-10-15 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 10:06 [PATCH 2.6.32-rc4] alpha: fix build after vmlinux.lds.S cleanup (really) Daniele Calore
  -- strict thread matches above, loose matches on Subject: below --
2009-10-15 12:04 Daniele Calore

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