2009-06-19 04:16:32

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: slab tree build failure

Hi all,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

mm/slqb.c:75: error: 'SLAB_GFP_BOOT_MASK' undeclared here (not in a function)

Caused by commit df548b0bbaf2d4d16ce52d2f5ccdc1cfded70e06 ("SLQB: Fix
early boot allocations") from the slab tree interacting with commit
dcce284a259373f9e5570f2e33f79eca84fcf565 ("mm: Extend gfp masking to the
page allocator") that entered Linus' tree today.

I have applied this patch for today:

From: Stephen Rothwell <[email protected]>
Date: Fri, 19 Jun 2009 14:13:21 +1000
Subject: [PATCH] slqb: fix for macro name change

Signed-off-by: Stephen Rothwell <[email protected]>
---
mm/slqb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slqb.c b/mm/slqb.c
index b61ad01..4c9051d 100644
--- a/mm/slqb.c
+++ b/mm/slqb.c
@@ -72,7 +72,7 @@ static int slqb_min_objects = 1;
* The slab allocator is initialized with interrupts disabled. Therefore, make
* sure early boot allocations don't accidentally enable interrupts.
*/
-static gfp_t slab_gfp_mask __read_mostly = SLAB_GFP_BOOT_MASK;
+static gfp_t slab_gfp_mask __read_mostly = GFP_BOOT_MASK;

#ifdef CONFIG_NUMA
static inline int slab_numa(struct kmem_cache *s)
--
1.6.3.1

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


2009-06-19 10:40:41

by Benjamin Herrenschmidt

[permalink] [raw]
Subject: Re: linux-next: slab tree build failure

On Fri, 2009-06-19 at 14:16 +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next build (powerpc ppc64_defconfig) failed like this:
>
> mm/slqb.c:75: error: 'SLAB_GFP_BOOT_MASK' undeclared here (not in a function)
>
> Caused by commit df548b0bbaf2d4d16ce52d2f5ccdc1cfded70e06 ("SLQB: Fix
> early boot allocations") from the slab tree interacting with commit
> dcce284a259373f9e5570f2e33f79eca84fcf565 ("mm: Extend gfp masking to the
> page allocator") that entered Linus' tree today.
>
> I have applied this patch for today:

The right fix is to remove slab_gfp_mask from slqb.c and use
the global gfp_allowed_mask instead.

Cheers,
Ben.

> From: Stephen Rothwell <[email protected]>
> Date: Fri, 19 Jun 2009 14:13:21 +1000
> Subject: [PATCH] slqb: fix for macro name change
>
> Signed-off-by: Stephen Rothwell <[email protected]>
> ---
> mm/slqb.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/slqb.c b/mm/slqb.c
> index b61ad01..4c9051d 100644
> --- a/mm/slqb.c
> +++ b/mm/slqb.c
> @@ -72,7 +72,7 @@ static int slqb_min_objects = 1;
> * The slab allocator is initialized with interrupts disabled. Therefore, make
> * sure early boot allocations don't accidentally enable interrupts.
> */
> -static gfp_t slab_gfp_mask __read_mostly = SLAB_GFP_BOOT_MASK;
> +static gfp_t slab_gfp_mask __read_mostly = GFP_BOOT_MASK;
>
> #ifdef CONFIG_NUMA
> static inline int slab_numa(struct kmem_cache *s)
> --
> 1.6.3.1
>

2009-06-22 09:09:16

by Pekka Enberg

[permalink] [raw]
Subject: Re: linux-next: slab tree build failure

On Fri, 2009-06-19 at 20:40 +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2009-06-19 at 14:16 +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > Today's linux-next build (powerpc ppc64_defconfig) failed like this:
> >
> > mm/slqb.c:75: error: 'SLAB_GFP_BOOT_MASK' undeclared here (not in a function)
> >
> > Caused by commit df548b0bbaf2d4d16ce52d2f5ccdc1cfded70e06 ("SLQB: Fix
> > early boot allocations") from the slab tree interacting with commit
> > dcce284a259373f9e5570f2e33f79eca84fcf565 ("mm: Extend gfp masking to the
> > page allocator") that entered Linus' tree today.
> >
> > I have applied this patch for today:
>
> The right fix is to remove slab_gfp_mask from slqb.c and use
> the global gfp_allowed_mask instead.

This should be fixed now in slab.git. Something in SQLB is still
enabling interrupts during early boot but I don't have the time to look
at it in more detail right now.

Pekka