lkml.org 
[lkml]   [2006]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.16.6 ( - 2.6.16.11 ) compile failure on an alpha
On Tue, 2006-04-25 11:29:25 +0100, Brian Uhrain <buhrain@rosettastone.com> wrote:
> ---
> arch/alpha/kernel/setup.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> --- linux-2.6.16.11.orig/arch/alpha/kernel/setup.c 2006-04-25 11:21:03.000000000 +0100
> +++ linux-2.6.16.11/arch/alpha/kernel/setup.c 2006-04-25 11:22:56.557266608 +0100
> @@ -483,11 +483,13 @@ register_cpus(void)
> {
> int i;
>
> - for_each_possible_cpu(i) {
> - struct cpu *p = kzalloc(sizeof(*p), GFP_KERNEL);
> - if (!p)
> - return -ENOMEM;
> - register_cpu(p, i, NULL);
> + for (i = 0; i < NR_CPUS; i++) {

Nope. Please implement for_each_possible_cpu(). A patch for that flew
along right today.

> + if (cpu_possible(i)) {
> + struct cpu *p = kzalloc(sizeof(*p), GFP_KERNEL);
> + if (!p)
> + return -ENOMEM;
> + register_cpu(p, i, NULL);
> + }
> }
> return 0;
> }

MfG, JBG

--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-04-25 20:56    [W:0.031 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site