From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amerigo Wang Subject: Re: [PATCH] Drop superfluous casts in nr_free_pages() callers Date: Tue, 4 Aug 2009 11:16:15 +0800 Message-ID: <20090804031615.GB5050@cr0.nay.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from wf-out-1314.google.com ([209.85.200.174]:56919 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754954AbZHDDOB (ORCPT ); Mon, 3 Aug 2009 23:14:01 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Geert Uytterhoeven Cc: Christoph Lameter , Andrew Morton , linux-arch@vger.kernel.org, Linux Kernel Development On Mon, Aug 03, 2009 at 06:11:42PM +0200, Geert Uytterhoeven wrote: >Commit 96177299416dbccb73b54e6b344260154a445375 ("Drop free_pages()") >modified nr_free_pages() to return 'unsigned long' instead of 'unsigned int'. >This made the casts to 'unsigned long' in most callers superfluous, hence >remove them. > >Signed-off-by: Geert Uytterhoeven >--- >diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c >index 61d7e61..a5d5e70 100644 >--- a/arch/um/kernel/mem.c >+++ b/arch/um/kernel/mem.c >@@ -77,7 +77,7 @@ void __init mem_init(void) > num_physpages = totalram_pages; > max_pfn = totalram_pages; > printk(KERN_INFO "Memory: %luk available\n", >- (unsigned long) nr_free_pages() << (PAGE_SHIFT-10)); >+ nr_free_pages() << (PAGE_SHIFT-10)); > kmalloc_ok = 1; > > #ifdef CONFIG_HIGHMEM Since it is fine for other arch, um too. Acked-by: WANG Cong