From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbbIRFfj (ORCPT ); Fri, 18 Sep 2015 01:35:39 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:15614 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbbIRFfh (ORCPT ); Fri, 18 Sep 2015 01:35:37 -0400 X-IronPort-AV: E=Sophos;i="5.17,550,1437429600"; d="scan'208";a="178173000" Date: Fri, 18 Sep 2015 07:35:34 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: Andrzej Hajda cc: SF Markus Elfring , Bartlomiej Zolnierkiewicz , Gilles Muller , Joe Perches , Nicolas Palix , Michal Marek , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [PATCH] coccinelle: tests: unsigned value cannot be lesser than zero In-Reply-To: <55F8204D.3080606@samsung.com> Message-ID: References: <1442309232-5902-1-git-send-email-a.hajda@samsung.com> <55F816BC.5050407@users.sourceforge.net> <55F8204D.3080606@samsung.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> +{unsigned char, unsigned short int, unsigned int, unsigned long, unsigned long long, size_t, u8, u16, u32, u64} v; How about adding bool? I don't currently find any problems with it, but perhaps some could arise. julia > >> +@@ > >> + > >> +( > >> +*v@p < 0 > >> +| > >> +*v@p >= 0 > >> +) > > How do you think about to use the following SmPL wording instead? > > > > v@p > > ( > > *< 0 > > | > > *<= 0 > > ) > > > > Regards, > > Markus > > > > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >