Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755604AbZGEJUc (ORCPT ); Sun, 5 Jul 2009 05:20:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752557AbZGEJUX (ORCPT ); Sun, 5 Jul 2009 05:20:23 -0400 Received: from mail-px0-f190.google.com ([209.85.216.190]:43114 "EHLO mail-px0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbZGEJUW (ORCPT ); Sun, 5 Jul 2009 05:20:22 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=KgzvndiuCpDaiKg0Hhb49fkWCHHvj0pjFNy6HWRCZAeX2zl/ViQO+1Oi8zfP7YEmaG i8kUIkuZT2iBuNbMRiXWW8l+YI6chwXO+NDBh/3Jf5tiMM7RkT3Ip9GrMhgkuQy6Ysxk bY+HaNNvaiCHRAYqnv0rkuM/VFszNA4eEYfdc= Subject: [PATCH v4]mempool.c : clean up type-casting twice From: "Figo.zhang" To: Linus Torvalds , Ingo Molnar Cc: Andrew Morton , lkml In-Reply-To: <1246784484.4358.3.camel@myhost> References: <1246762120.15308.3.camel@myhost> <1246766651.15308.13.camel@myhost> <1246784484.4358.3.camel@myhost> Content-Type: text/plain Date: Sun, 05 Jul 2009 17:20:20 +0800 Message-Id: <1246785620.4358.10.camel@myhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1160 Lines: 42 clean up type-casting twice. "size_t" typedef as "unsigned long" in 64-bit system, and "unsigned int" in 32-bit system. in v3, remove the space to casts. in v4, change the line-length limit for git log. Signed-off-by: Figo.zhang --- mm/mempool.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mempool.c b/mm/mempool.c index a46eb1b..32e75d4 100644 --- a/mm/mempool.c +++ b/mm/mempool.c @@ -303,14 +303,14 @@ EXPORT_SYMBOL(mempool_free_slab); */ void *mempool_kmalloc(gfp_t gfp_mask, void *pool_data) { - size_t size = (size_t)(long)pool_data; + size_t size = (size_t)pool_data; return kmalloc(size, gfp_mask); } EXPORT_SYMBOL(mempool_kmalloc); void *mempool_kzalloc(gfp_t gfp_mask, void *pool_data) { - size_t size = (size_t) pool_data; + size_t size = (size_t)pool_data; return kzalloc(size, gfp_mask); } EXPORT_SYMBOL(mempool_kzalloc); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/