Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp448922lqt; Fri, 19 Apr 2024 00:01:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJYVWQNZHw8pC930iD9uk+MMa2v2yDi1V2kgxtJJyQWmFmoVV1kCGSZgWnQlNqrcey0bDV9non01zFGagaZS7K8TJKjHxckEVXfE0Ppg== X-Google-Smtp-Source: AGHT+IEIio4+uXHjILvUUJzxJa7002tqxVVl3wv54QGYQueaYHsg0aeUZzUp1dYPlsXVOZUxQOWG X-Received: by 2002:a05:620a:4482:b0:78f:1a34:166d with SMTP id x2-20020a05620a448200b0078f1a34166dmr1122534qkp.5.1713510116848; Fri, 19 Apr 2024 00:01:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713510116; cv=pass; d=google.com; s=arc-20160816; b=CxAz53KyEGVQWvERgRTH7Z4YlAcpX0dmZoLWCscBaXMSlI8UMaCb3V83aaxjriyDNC FzLCPKaFphqithpXF36SSD3q1BEOikoZsB4CF0ROjtYauEJY/BK/RdbMY0u3J5M1GWJb ZXB9bxTmDo+GtWBkmCwg5wjbQLipNbzd73xNYdVh2HuZGhoBcjyK+u8jEsnrx8DWM9B9 +ekukGNq6HVW8ycpEt/HXaeWgWQ+cDdxpEAZdpuCeJixiNu8JCEIXC+1CBriArypDhTm 3dLcd0AX5d8hBFwkPNH/OzUQCi/6TiqWE0w7dX41vMe6Q8JhPKscHzQBcLCmdVKlulZk e/Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=lZKIvqMY0yDjmj+RCqXjIQ/hqzgZ/plMeZWor4/tnHs=; fh=m9NVDRI7m12d14IawN/Lu09i6lxK7H6Q/zwvvsNec4g=; b=yM0J0WsnwvtQsbaSEZ4YWGSlJJxhb23zi5fPbPTryqewzLJgIhJrzAQ6zmSFmvTTVk y/V1e0MZHUKHQcNxUz8V/fPjXckFbJmuPofl2XMedOGk/oRFafwZxA8xkty77OO7aYes fzfPDzQ6TRAuLcXf6x1/12Y/ZJ+z8tZZ+hvMYsb+Oc/qVdyLgs2k/DvYJUWRWa2ztfY5 Cyi69x52+J3yJfYT+1KzbDw47eynu0xPlfri7pICOxpK6HHluIb1V+heKWe6kfmGA7O6 eG8jc+zqQ30Tahf2AVkIeQPymWkZJ4FgYnlMEaN0YhFD1Z59gUYwj8iRxg8RSGQPhR8c /wfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=oCh4lCzC; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-151079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y8-20020a05620a44c800b0078d76c129easi3809478qkp.424.2024.04.19.00.01.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=oCh4lCzC; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-151079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 583971C20FB1 for ; Fri, 19 Apr 2024 07:01:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93E6342ABA; Fri, 19 Apr 2024 07:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="oCh4lCzC" Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3BDA3A1CF; Fri, 19 Apr 2024 07:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.104 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510092; cv=none; b=eokUwuJEm3QPTlZ5FGzBtz10f6nJRks9K/9qKiWTfW8CcVMt9kVa4D/2bNc9EyyprCPUZJXFgnHVMeGdSo3s2gRfi2byv6L64i+O2m+szltdpUlBZ4z9uuhlzW1IjZbHYcIVkD3A3UatowrjAdALwP8tlBOPDnjD2qds9dSTZGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510092; c=relaxed/simple; bh=hu5M/GWI+6j5XlPD+m5U1EPsKsY/dPwRT5nX2i3eaNI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=Y1bs3v04ENKt+nbtV3C8d7FLhiKjZJUtwtaS7ciIkVRfsrNzlpVT2v9YA99I5UlKmfQWSyFfsG3BsOFhC2sJEOyzKCRvuOdW5Uqhh58DnrKfkvxufA7h1DZ/ukIjGIG9cOK+/jPQ9OeGzlRonOySy4R3kJuWIhiqWN1bnJZlRfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=oCh4lCzC; arc=none smtp.client-ip=192.134.164.104 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=lZKIvqMY0yDjmj+RCqXjIQ/hqzgZ/plMeZWor4/tnHs=; b=oCh4lCzCaB7R0QO/V04lwiVU73U/Zo2jCNbiyE/o/OC+QqodUUY3CPTy BH2N4kJIVz14Et7EVqH0NVWjaRr6JlwQ0VzCydDxlB4AltgQCGkB4uabX Vc7b+zr2HDtXO/bV4H7uZggCl5IKCUhOWxQ9e61p9P2VTxiZJn3o/J98E 4=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,213,1708383600"; d="scan'208";a="85211701" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 09:01:22 +0200 Date: Fri, 19 Apr 2024 09:01:21 +0200 (CEST) From: Julia Lawall To: Markus Elfring cc: Julia Lawall , Ricardo Ribalda , Denis Efremov , Nicolas Palix , cocci@inria.fr, kernel-janitors@vger.kernel.org, LKML Subject: Re: [cocci] [PATCH] coccinelle: misc: minmax: Suppress reports for err returns In-Reply-To: Message-ID: <1530259-fe0-eb35-6f8a-58f272adef5@inria.fr> References: <20240415-minimax-v1-1-5feb20d66a79@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-533158061-1713510082=:3432" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-533158061-1713510082=:3432 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 19 Apr 2024, Markus Elfring wrote: > >> Most of the people prefer: > >> > >> return ret < 0 ? ret: 0; > >> > >> than: > >> > >> return min(ret, 0); > >> > >> Let's tweak the cocci file to ignore those lines completely. > … > > Applied, thanks. (Coccinelle for-6.10 branch). > > Was a planned code adjustment published? There is no "planned code adjustment" if there is no patch. I can check the dependencies again. julia > > > … > >> +++ b/scripts/coccinelle/misc/minmax.cocci > >> @@ -50,11 +50,26 @@ func(...) > >> ...> > >> } > >> > >> +// Ignore errcode returns. > >> +@errcode@ > … > >> -// Don't generate patches for errcode returns. > >> -@errcode depends on patch@ > … > > How does such a change fit to the usability of the coccicheck operation modes > “context” and “org”? > > Should dependencies be reconsidered any more for the desired consistency > of involved rules for scripts of the semantic patch language? > > Regards, > Markus > --8323329-533158061-1713510082=:3432--