Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752846AbYKYOr6 (ORCPT ); Tue, 25 Nov 2008 09:47:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751364AbYKYOrt (ORCPT ); Tue, 25 Nov 2008 09:47:49 -0500 Received: from mtagate7.uk.ibm.com ([195.212.29.140]:40247 "EHLO mtagate7.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbYKYOrs (ORCPT ); Tue, 25 Nov 2008 09:47:48 -0500 Date: Tue, 25 Nov 2008 16:43:55 +0200 From: Muli Ben-Yehuda To: Julia Lawall Cc: jdmason@kudzu.us, discuss@x86-64.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH 2/5] arch/x86/kernel/pci-calgary_64.c: change simple_strtol to simple_strtoul Message-ID: <20081125144355.GB9912@il.ibm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 48 On Tue, Nov 25, 2008 at 02:13:03PM +0100, Julia Lawall wrote: > From: Julia Lawall > > Since bridge is unsigned, it would seem better to use simple_strtoul that > simple_strtol. > > A simplified version of the semantic patch that makes this change is as > follows: (http://www.emn.fr/x-info/coccinelle/) > > // > @r2@ > long e; > position p; > @@ > > e = simple_strtol@p(...) > > @@ > position p != r2.p; > type T; > T e; > @@ > > e = > - simple_strtol@p > + simple_strtoul > (...) > // > > Signed-off-by: Julia Lawall Acked-by: Muli Ben-Yehuda Ingo, can you please push? Thanks, Muli -- The First Workshop on I/O Virtualization (WIOV '08) Dec 2008, San Diego, CA, http://www.usenix.org/wiov08/ <-> SYSTOR 2009---The Israeli Experimental Systems Conference http://www.haifa.il.ibm.com/conferences/systor2009/ -- 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/