From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756085AbZJGGOn (ORCPT ); Wed, 7 Oct 2009 02:14:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753445AbZJGGOn (ORCPT ); Wed, 7 Oct 2009 02:14:43 -0400 Received: from mail-px0-f179.google.com ([209.85.216.179]:33872 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752798AbZJGGOm (ORCPT ); Wed, 7 Oct 2009 02:14:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:mime-version :content-type:content-disposition:content-transfer-encoding :user-agent; b=Yuz+fghNoOv7ZPT5jyY/95nsFoyVgG9moAqnKPthw2xvgjsJCGBc5KLVsj+VurW/v0 SZUd/pvVAW6DbrUeUGmCDEre2vzgGVxAgmCcGxStm22dr01A0M5th3ZtR4Hf9hPL/CHs 1zbw3twTi3hURSx0N0u/qZDINSywmhY9TYQjc= Date: Wed, 7 Oct 2009 14:12:23 +0800 From: Zhenwen Xu To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] fix two warnings on mm/percpu.c Message-ID: <20091007061223.GA17794@helight> Reply-To: Zhenwen Xu MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix those two warnings: mm/percpu.c: In function ‘pcpu_embed_first_chunk’: mm/percpu.c:1873: warning: comparison of distinct pointer types lacks a cast mm/percpu.c:1879: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘size_t Signed-off-by: Zhenwen Xu --- mm/percpu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index 4a048ab..fc0fc6a 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1817,7 +1817,8 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size, void *base = (void *)ULONG_MAX; void **areas = NULL; struct pcpu_alloc_info *ai; - size_t size_sum, areas_size, max_distance; + size_t size_sum, areas_size; + unsigned long max_distance; int group, i, rc; ai = pcpu_build_alloc_info(reserved_size, dyn_size, atom_size, -- 1.6.3.3 -- -------------------------------- http://zhwen.org - Open and Free From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id 999446B004F for ; Wed, 7 Oct 2009 02:14:06 -0400 (EDT) Received: by pxi2 with SMTP id 2so765202pxi.11 for ; Tue, 06 Oct 2009 23:14:05 -0700 (PDT) Date: Wed, 7 Oct 2009 14:12:23 +0800 From: Zhenwen Xu Subject: [PATCH] fix two warnings on mm/percpu.c Message-ID: <20091007061223.GA17794@helight> Reply-To: Zhenwen Xu MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org List-ID: fix those two warnings: mm/percpu.c: In function a??pcpu_embed_first_chunka??: mm/percpu.c:1873: warning: comparison of distinct pointer types lacks a cast mm/percpu.c:1879: warning: format a??%lxa?? expects type a??long unsigned inta??, but argument 2 has type a??size_t Signed-off-by: Zhenwen Xu --- mm/percpu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index 4a048ab..fc0fc6a 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1817,7 +1817,8 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size, void *base = (void *)ULONG_MAX; void **areas = NULL; struct pcpu_alloc_info *ai; - size_t size_sum, areas_size, max_distance; + size_t size_sum, areas_size; + unsigned long max_distance; int group, i, rc; ai = pcpu_build_alloc_info(reserved_size, dyn_size, atom_size, -- 1.6.3.3 -- -------------------------------- http://zhwen.org - Open and Free -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org