From: Shaohua Li Date: Wed, 20 Feb 2013 02:14:40 +0000 (+1100) Subject: swap-add-per-partition-lock-for-swapfile-fix-fix X-Git-Tag: next-20130220~1^2~462 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d097b2c1cdd7c901fb57dd68acc85209eabd557;p=karo-tx-linux.git swap-add-per-partition-lock-for-swapfile-fix-fix > 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') > Reported-by: Stephen Rothwell Signed-off-by: Andrew Morton --- diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c index dde85ef1c56d..48e0c030e8f5 100644 --- a/arch/sparc/mm/init_32.c +++ b/arch/sparc/mm/init_32.c @@ -57,7 +57,7 @@ void show_mem(unsigned int filter) printk("Mem-info:\n"); show_free_areas(filter); printk("Free swap: %6ldkB\n", - nr_swap_pages << (PAGE_SHIFT-10)); + get_nr_swap_pages() << (PAGE_SHIFT-10)); printk("%ld pages of RAM\n", totalram_pages); printk("%ld free pages\n", nr_free_pages()); }