Re: [PATCH 1/2] clean up for early_pfn_to_nid

From: KOSAKI Motohiro
Date: Fri Feb 13 2009 - 01:15:19 EST


> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
>
> Declaration of early_pfn_to_nid() is scattered over per-arch include files,
> and it seems it's complicated to know when the declaration is used.
> I think it makes fix-for-memmap-init not easy.
>
> This patch moves all declaration to include/linux/mm.h
>
> After this,
> if !CONFIG_NODES_POPULATES_NODE_MAP && !CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
> -> Use static definition in include/linux/mm.h
> else if !CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
> -> Use generic definition in mm/page_alloc.c
> else
> -> per-arch back end function will be called.
>
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

at least, this patch works fine on my ia64 box.

Tested-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>



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