From: Ernst Herzberg <list-lkml@net4u.de>
To: linux-kernel@vger.kernel.org
Subject: 2.6.16.9 alpha compile error
Date: Mon, 24 Apr 2006 16:08:13 +0200 [thread overview]
Message-ID: <200604241608.13153.list-lkml@net4u.de> (raw)
arch/alpha/kernel/setup.c: In function `register_cpus':
arch/alpha/kernel/setup.c:486: warning: implicit declaration of function `for_each_possible_cpu'
arch/alpha/kernel/setup.c:486: error: syntax error before '{' token
arch/alpha/kernel/setup.c:488: error: `p' undeclared (first use in this function)
arch/alpha/kernel/setup.c:488: error: (Each undeclared identifier is reported only once
arch/alpha/kernel/setup.c:488: error: for each function it appears in.)
arch/alpha/kernel/setup.c: At top level:
arch/alpha/kernel/setup.c:492: error: syntax error before "return"
This q&d patch fixes it for me:
--
--- lx-2.6.16.9.vanilla/arch/alpha/kernel/setup.c 2006-04-24 15:56:23.000000000 +0200
+++ lx-2.6.16.9/arch/alpha/kernel/setup.c 2006-04-24 15:36:50.000000000 +0200
@@ -483,7 +483,8 @@ register_cpus(void)
{
int i;
- for_each_possible_cpu(i) {
+ for (i = 0; i < NR_CPUS; i++)
+ if (cpu_possible(i)) {
struct cpu *p = kzalloc(sizeof(*p), GFP_KERNEL);
if (!p)
return -ENOMEM;
--
next reply other threads:[~2006-04-24 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-24 14:08 Ernst Herzberg [this message]
2006-04-24 18:25 ` Norbert Tretkowski
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=200604241608.13153.list-lkml@net4u.de \
--to=list-lkml@net4u.de \
--cc=earny@net4u.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®