linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniele Calore <orkaan@orkaan.org>
To: rth@twiddle.net, linux-alpha@vger.kernel.org,
	linux-kernel@vger.kernel.org, ink@jurassic.park.msu.ru
Cc: orkaan@orkaan.org
Subject: [PATCH 2.6.32-rc4] alpha: fix build after vmlinux.lds.S cleanup (really)
Date: Thu, 15 Oct 2009 14:04:08 +0200	[thread overview]
Message-ID: <20091015140408.21e901b1@buddha> (raw)

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
 
 /*


             reply	other threads:[~2009-10-15 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 12:04 Daniele Calore [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-14 10:06 [PATCH 2.6.32-rc4] alpha: fix build after vmlinux.lds.S cleanup (really) Daniele Calore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091015140408.21e901b1@buddha \
    --to=orkaan@orkaan.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).