]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap-add-per-partition-lock-for-swapfile-fix-fix-fix-fix
authorShaohua Li <shli@kernel.org>
Wed, 20 Feb 2013 02:14:41 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:47 +0000 (16:52 +1100)
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 <shli@fusionio.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/tile/mm/pgtable.c

index de0de0c0e8a19946bcc6c0f14c486776d8091097..b3b4972c245171e8188f120997a0c4f8c786499e 100644 (file)
@@ -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;