From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752792AbcAGOhT (ORCPT ); Thu, 7 Jan 2016 09:37:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:37244 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbcAGOhR (ORCPT ); Thu, 7 Jan 2016 09:37:17 -0500 Date: Thu, 7 Jan 2016 15:37:13 +0100 From: Michal Marek To: Julia Lawall Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Gilles Muller , Nicolas Palix , open list , "moderated list:COCCINELLE/Semantic Patches (SmPL)" Subject: Re: [PATCH v7] coccinelle: tests: unsigned value cannot be lesser than zero Message-ID: <20160107143713.GA7411@sepie.suse.cz> References: <1452159411-3216-1-git-send-email-a.hajda@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2016 at 12:35:34PM +0100, Julia Lawall wrote: > > On Thu, 7 Jan 2016, Andrzej Hajda wrote: > > > Unsigned expressions cannot be lesser than zero. Presence of comparisons > > 'unsigned (<|<=|>|>=) 0' often indicates a bug, usually wrong type of variable. > > The patch beside finding such comparisons tries to eliminate false positives, > > mainly by bypassing range checks. > > > > gcc can detect such comparisons also using -Wtype-limits switch, but it warns > > also in correct cases, making too much noise. > > > > Signed-off-by: Andrzej Hajda > > Acked-by: Julia Lawall Thanks to both of you, applied to kbuild.git#misc now. Michal