From cf1707e395a6b2671c6eab0cc473b7cfa61c16c1 Mon Sep 17 00:00:00 2001 From: Shaohua Li Date: Wed, 20 Feb 2013 13:14:41 +1100 Subject: [PATCH] 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 --- arch/tile/mm/pgtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5