Re: [PATCH 02/10] bootmem: clean up arch-specific bootmem wrapping

From: Tejun Heo
Date: Tue Feb 24 2009 - 06:39:48 EST


Hello,

Johannes Weiner wrote:
> This won't suffice as reserve_bootmem() doesn't use
> alloc_bootmem_core(), so now you effectively removed the node-0
> restriction for reserve_bootmem() on this configuration.

Ah... right. :-(

> I wonder why this setup wants to register several bootmem nodes but
> only use node 0, anyway. Does someone remember? :)
>
...
>> -static void * __init alloc_bootmem_core(struct bootmem_data *bdata,
>> +static void * __init __alloc_bootmem_core(struct bootmem_data *bdata,
>> unsigned long size, unsigned long align,
>> unsigned long goal, unsigned long limit)
>
> static but you refer to it in arch/x86/include/mmzone_32.h.

Yeah, that's why it's a macro. I thought about putting it into a
separate header file, say, asm/bootmem-wrapper.h and including it only
from bootmem.c but it looked like an overkill, so...

Thanks.

--
tejun
--
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/