]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm-correctly-update-zone-managed_pages-fix-fix
authorJiang Liu <liuj97@gmail.com>
Wed, 19 Jun 2013 00:06:20 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:13 +0000 (17:13 +1000)
commite885adb83d70a4d33e600c977e736d0d406ca499
tree926ac1f42c6a5ceaecc66beb51dd1424346d5011
parent99c876f21e6d7d2512eb4aa6b20601524a5d9f9d
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