Re: [PATCH] bootmem.c: Avoid c90 declaration warning
From: Andrew Morton
Date: Thu Jun 18 2009 - 16:26:20 EST
On Thu, 18 Jun 2009 13:07:13 -0700
Joe Perches <joe@xxxxxxxxxxx> wrote:
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
>
> diff --git a/mm/bootmem.c b/mm/bootmem.c
> index 282df0a..09d9c98 100644
> --- a/mm/bootmem.c
> +++ b/mm/bootmem.c
> @@ -536,11 +536,13 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata,
> return kzalloc(size, GFP_NOWAIT);
>
> #ifdef CONFIG_HAVE_ARCH_BOOTMEM
> + {
> bootmem_data_t *p_bdata;
>
> p_bdata = bootmem_arch_preferred_node(bdata, size, align, goal, limit);
> if (p_bdata)
> return alloc_bootmem_core(p_bdata, size, align, goal, limit);
> + }
> #endif
> return NULL;
> }
Well yes.
We'll be needing some tabs there.
Unrelatedly, I'm struggling a bit with bootmem_arch_preferred_node().
It's only defined if CONFIG_X86_32=y && CONFIG_NEED_MULTIPLE_NODES=y,
but it gets called if CONFIG_HAVE_ARCH_BOOTMEM=y.
Is this correct, logical and as simple as we can make it??
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/