From: Shaohua Li Date: Wed, 20 Feb 2013 02:14:41 +0000 (+1100) Subject: swap-add-per-partition-lock-for-swapfile-fix-fix-fix-fix X-Git-Tag: next-20130220~1^2~459 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cf1707e395a6b2671c6eab0cc473b7cfa61c16c1;p=karo-tx-linux.git swap-add-per-partition-lock-for-swapfile-fix-fix-fix-fix Fix building errors like: > arch/sparc/mm/init_32.c: In function 'show_mem': > arch/sparc/mm/init_32.c:60:23: error: invalid operands to binary << (have 'atomic_long_t' and 'int') Signed-off-by: Shaohua Li Reported-by: Stephen Rothwell Reported-by: Wu Fengguang Signed-off-by: Andrew Morton --- diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index de0de0c0e8a1..b3b4972c2451 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c @@ -61,7 +61,7 @@ void show_mem(unsigned int filter) global_page_state(NR_PAGETABLE), global_page_state(NR_BOUNCE), global_page_state(NR_FILE_PAGES), - nr_swap_pages); + get_nr_swap_pages()); for_each_zone(zone) { unsigned long flags, order, total = 0, largest_order = -1;