mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid'
@ 2005-12-21  9:45 Serge Noiraud
  2006-01-05 10:12 ` Serge Noiraud
  0 siblings, 1 reply; 4+ messages in thread
From: Serge Noiraud @ 2005-12-21  9:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar

Hi,

	testing on i386, I get the following error :
...
  CC      mm/slab.o
mm/slab.c: In function `cache_alloc_refill':
mm/slab.c:2093: error: structure has no member named `nodeid'
mm/slab.c: In function `free_block':
mm/slab.c:2239: error: structure has no member named `nodeid'
mm/slab.c:2239: error: `node' undeclared (first use in this function)
mm/slab.c:2239: error: (Each undeclared identifier is reported only once
mm/slab.c:2239: error: for each function it appears in.)
make[4]: *** [mm/slab.o] Erreur 1
...

You removed nodeid in the slab struct, but many functions use it.

-- 
Serge Noiraud
Bull Téléservice
Bull, Architect of an Open World TM
Tél : 08 02 08 20 00 
http://www.bull.com/ 

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

* Re: 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid'
  2005-12-21  9:45 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid' Serge Noiraud
@ 2006-01-05 10:12 ` Serge Noiraud
  2006-01-05 10:50   ` Serge Noiraud
  2006-01-05 14:41   ` Daniel Walker
  0 siblings, 2 replies; 4+ messages in thread
From: Serge Noiraud @ 2006-01-05 10:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Daniel Walker

mercredi 21 Décembre 2005 10:45, Serge Noiraud wrote/a écrit :
> Hi,
> 
> 	testing on i386, I get the following error :
> ...
>   CC      mm/slab.o
> mm/slab.c: In function `cache_alloc_refill':
> mm/slab.c:2093: error: structure has no member named `nodeid'
> mm/slab.c: In function `free_block':
> mm/slab.c:2239: error: structure has no member named `nodeid'
> mm/slab.c:2239: error: `node' undeclared (first use in this function)
> mm/slab.c:2239: error: (Each undeclared identifier is reported only once
> mm/slab.c:2239: error: for each function it appears in.)
> make[4]: *** [mm/slab.o] Erreur 1
> ...
> 
> You removed nodeid in the slab struct, but many functions use it.
> 
I get the same problem with 2.6.15-rt1
The following patch suppress the error : I'm not sure it's the good correction.
perhaps we should supress this DEBUG test ?

--- linux.orig/mm/slab.c
+++ linux/mm/slab.c
@@ -2090,7 +2090,6 @@
            next = slab_bufctl(slabp)[slabp->free];
 #if DEBUG
            slab_bufctl(slabp)[slabp->free] = BUFCTL_FREE;
-           WARN_ON(numa_node_id() != slabp->nodeid);
 #endif
                slabp->free = next;
        }
        check_slabp(cachep, slabp);




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

* Re: 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid'
  2006-01-05 10:12 ` Serge Noiraud
@ 2006-01-05 10:50   ` Serge Noiraud
  2006-01-05 14:41   ` Daniel Walker
  1 sibling, 0 replies; 4+ messages in thread
From: Serge Noiraud @ 2006-01-05 10:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Daniel Walker

jeudi 5 Janvier 2006 11:12, Serge Noiraud wrote/a écrit :
> mercredi 21 Décembre 2005 10:45, Serge Noiraud wrote/a écrit :
> > Hi,
> > 
> > 	testing on i386, I get the following error :
> > ...
> >   CC      mm/slab.o
> > mm/slab.c: In function `cache_alloc_refill':
> > mm/slab.c:2093: error: structure has no member named `nodeid'
> > mm/slab.c: In function `free_block':
> > mm/slab.c:2239: error: structure has no member named `nodeid'
> > mm/slab.c:2239: error: `node' undeclared (first use in this function)
> > mm/slab.c:2239: error: (Each undeclared identifier is reported only once
> > mm/slab.c:2239: error: for each function it appears in.)
> > make[4]: *** [mm/slab.o] Erreur 1
> > ...
> > 
> > You removed nodeid in the slab struct, but many functions use it.
> > 
> I get the same problem with 2.6.15-rt1
> The following patch suppress the error : I'm not sure it's the good correction.
> perhaps we should supress this DEBUG test ?
> 
> --- linux.orig/mm/slab.c
> +++ linux/mm/slab.c
> @@ -2090,7 +2090,6 @@
>             next = slab_bufctl(slabp)[slabp->free];
>  #if DEBUG
>             slab_bufctl(slabp)[slabp->free] = BUFCTL_FREE;
> -           WARN_ON(numa_node_id() != slabp->nodeid);
>  #endif
>                 slabp->free = next;
>         }
>         check_slabp(cachep, slabp);

I forgot the second problem.

@@ -2236,7 +2235,6 @@
        check_slabp(cachep, slabp);
 #if DEBUG
        /* Verify that the slab belongs to the intended node */
-       WARN_ON(slabp->nodeid != node);

        if (slab_bufctl(slabp)[objnr] != BUFCTL_FREE) {
            printk(KERN_ERR "slab: double free detected in cache '%s', objp %p.\n",


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

* Re: 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid'
  2006-01-05 10:12 ` Serge Noiraud
  2006-01-05 10:50   ` Serge Noiraud
@ 2006-01-05 14:41   ` Daniel Walker
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Walker @ 2006-01-05 14:41 UTC (permalink / raw)
  To: Serge Noiraud; +Cc: rostedt, linux-kernel, Ingo Molnar


Looks like nodeid might just be equal to the cpu now. 

You could try turning off CONFIG_DEBUG_SLAB as a temporary solution. It
looks like the DEBUG define depends on that config option .

Daniel

On Thu, 2006-01-05 at 11:12 +0100, Serge Noiraud wrote:
> mercredi 21 Décembre 2005 10:45, Serge Noiraud wrote/a écrit :
> > Hi,
> > 
> > 	testing on i386, I get the following error :
> > ...
> >   CC      mm/slab.o
> > mm/slab.c: In function `cache_alloc_refill':
> > mm/slab.c:2093: error: structure has no member named `nodeid'
> > mm/slab.c: In function `free_block':
> > mm/slab.c:2239: error: structure has no member named `nodeid'
> > mm/slab.c:2239: error: `node' undeclared (first use in this function)
> > mm/slab.c:2239: error: (Each undeclared identifier is reported only once
> > mm/slab.c:2239: error: for each function it appears in.)
> > make[4]: *** [mm/slab.o] Erreur 1
> > ...
> > 
> > You removed nodeid in the slab struct, but many functions use it.
> > 
> I get the same problem with 2.6.15-rt1
> The following patch suppress the error : I'm not sure it's the good correction.
> perhaps we should supress this DEBUG test ?
> 
> --- linux.orig/mm/slab.c
> +++ linux/mm/slab.c
> @@ -2090,7 +2090,6 @@
>             next = slab_bufctl(slabp)[slabp->free];
>  #if DEBUG
>             slab_bufctl(slabp)[slabp->free] = BUFCTL_FREE;
> -           WARN_ON(numa_node_id() != slabp->nodeid);
>  #endif
>                 slabp->free = next;
>         }
>         check_slabp(cachep, slabp);
> 
> 
> 
> -
> 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/


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

end of thread, other threads:[~2006-01-05 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  9:45 2.6.15-rc5-rt4 and CONFIG_SLAB=y : structure has no member named `nodeid' Serge Noiraud
2006-01-05 10:12 ` Serge Noiraud
2006-01-05 10:50   ` Serge Noiraud
2006-01-05 14:41   ` Daniel Walker

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®