[BUGFIX][PATCH][-rc3] Define a consolidated definition ofnode_start/end_pfn for build error in page_cgroup.c (Was Re: mmotm2011-06-15-16-56 uploaded (mm/page_cgroup.c)

From: KAMEZAWA Hiroyuki
Date: Thu Jun 16 2011 - 20:53:55 EST


On Thu, 16 Jun 2011 11:35:59 +0100
Mel Gorman <mgorman@xxxxxxx> wrote:

> A caller that does node_end_pfn(nid++) will get a nasty surprise
> due to side-effects. I know architectures currently get this wrong
> including x86_64 but we might as well fix it up now. The definition
> in arch/x86/include/asm/mmzone_32.h is immune to side-effects and
> might be a better choice despite the use of a temporary variable.
>

Ok, here is a fixed one. Thank you for comments/review.
==