The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* undefined reference to highest_possible_node_id
@ 2006-10-15  8:04 Olaf Hering
  2006-10-15  9:43 ` Geert Uytterhoeven
  2006-10-15 10:51 ` Adrian Bunk
  0 siblings, 2 replies; 4+ messages in thread
From: Olaf Hering @ 2006-10-15  8:04 UTC (permalink / raw)
  To: linux-kernel


A 2.6.19-rc2 pseries_defconfig build with SMP=n will not link,
highest_possible_node_id is undefined because NODES_SHIFT == 4.
How can this be fixed properly?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: undefined reference to highest_possible_node_id
  2006-10-15  8:04 undefined reference to highest_possible_node_id Olaf Hering
@ 2006-10-15  9:43 ` Geert Uytterhoeven
  2006-10-15 10:51 ` Adrian Bunk
  1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2006-10-15  9:43 UTC (permalink / raw)
  To: Olaf Hering; +Cc: Linux Kernel Development

On Sun, 15 Oct 2006, Olaf Hering wrote:
> A 2.6.19-rc2 pseries_defconfig build with SMP=n will not link,
> highest_possible_node_id is undefined because NODES_SHIFT == 4.
> How can this be fixed properly?

I noticed the same a few days ago, but only started looking into it a few
minutes ago.

If MAX_NUMNODES is larger than one, highest_possible_node_id() is no longer a
macro, but a real function, defined in lib/cpumask.c.
NEED_MULTIPLE_NODES depends on DISCONTIGMEM || NUMA.

But lib/cpumask.c is compiled only for SMP, causing a link failure if
CONFIG_SUNRPC is enabled, as net/sunrpc/svc.c:svc_pool_map_init_pernode() uses
highest_possible_node_id().

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: undefined reference to highest_possible_node_id
  2006-10-15  8:04 undefined reference to highest_possible_node_id Olaf Hering
  2006-10-15  9:43 ` Geert Uytterhoeven
@ 2006-10-15 10:51 ` Adrian Bunk
  2006-10-15 10:57   ` Geert Uytterhoeven
  1 sibling, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-10-15 10:51 UTC (permalink / raw)
  To: Olaf Hering
  Cc: linux-kernel, Andrew Morton, Greg Banks, Geert Uytterhoeven,
	Paul Jackson

On Sun, Oct 15, 2006 at 10:04:21AM +0200, Olaf Hering wrote:
> 
> A 2.6.19-rc2 pseries_defconfig build with SMP=n will not link,
> highest_possible_node_id is undefined because NODES_SHIFT == 4.
> How can this be fixed properly?

This known bug in -mm [1] made it into Linus' tree?

It's not funny if more than a month after a bug report against -mm the 
bug is not only unfixed but even propagated to Linus' tree.  :-(

cu
Adrian

[1] http://lkml.org/lkml/2006/9/4/233

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: undefined reference to highest_possible_node_id
  2006-10-15 10:51 ` Adrian Bunk
@ 2006-10-15 10:57   ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2006-10-15 10:57 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Olaf Hering, Linux Kernel Development, Andrew Morton, Greg Banks,
	Paul Jackson

On Sun, 15 Oct 2006, Adrian Bunk wrote:
> On Sun, Oct 15, 2006 at 10:04:21AM +0200, Olaf Hering wrote:
> > A 2.6.19-rc2 pseries_defconfig build with SMP=n will not link,
> > highest_possible_node_id is undefined because NODES_SHIFT == 4.
> > How can this be fixed properly?
> 
> This known bug in -mm [1] made it into Linus' tree?

Yep, it got introduced in 2.6.19-rc1.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-15 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15  8:04 undefined reference to highest_possible_node_id Olaf Hering
2006-10-15  9:43 ` Geert Uytterhoeven
2006-10-15 10:51 ` Adrian Bunk
2006-10-15 10:57   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox