]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm-correctly-update-zone-managed_pages-fix-fix
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Jun 2013 00:08:01 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:19 +0000 (15:42 +1000)
commit02348ead5c9ab43de5a905073c05b26bcd5f8a40
tree64b9d5dad4801e9424f1be0c393170d82bc40407
parente14dea5b4ab80d48d1a353060954cfdadd79174f
mm-correctly-update-zone-managed_pages-fix-fix

When CONFIG_HIGHMEM is undefined, totalhigh_pages is defined as:
#define totalhigh_pages 0UL
Thus statement "totalhigh_pages += count" will cause build failure as:
  CC      mm/page_alloc.o
mm/page_alloc.c: In function `adjust_managed_page_count':
mm/page_alloc.c:5262:19: error: lvalue required as left operand of
assignment
make[1]: *** [mm/page_alloc.o] Error 1
make: *** [mm/page_alloc.o] Error 2

So we still need to use CONFIG_HIGHMEM to guard the statement.

Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c