2.6.16.9 alpha compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;


--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux