]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap-add-per-partition-lock-for-swapfile-fix-fix
authorShaohua Li <shli@kernel.org>
Wed, 20 Feb 2013 02:14:40 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:46 +0000 (16:52 +1100)
> 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 <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/sparc/mm/init_32.c

index dde85ef1c56d09171f694ce563762f1fdc3fd0d8..48e0c030e8f5c5d004da3fa01235af3362aeb553 100644 (file)
@@ -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());
 }