Re: 2.5.32-mm1

Rusty Russell (rusty@rustcorp.com.au)
Thu, 29 Aug 2002 11:20:57 +1000


In message <3D6CFE97.DA554FA9@zip.com.au> you write:
> Heinz Diehl wrote:
> >
> > ...
> > fs/fs.o(.text+0x5932): undefined reference to cpu_possible'
>
> Bah. Sorry about that. cpu_possible() appears to be undefined
> for uniprocessor builds.

Yes.

> +
> +#define cpu_possible(cpu) ((cpu) == 0)
> +

This is fine: techically it's:
BUG_ON(cpu != 0);

Since you can never invoke cpu_possible(cpu) or cpu_online(cpu) for
cpu >= NR_CPUS.

Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/