Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp445276lqt; Thu, 18 Apr 2024 23:51:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR1iCjMLh5UPscr3AJh03n8QfAG2yBXKY7FbXAfSKzTEherdQeohyYjTRWMZQCUQnkW20nAW8Ssg7+l/iW7xJeCmQ75PZt2kJPia8Iyw== X-Google-Smtp-Source: AGHT+IGEMvvErkI9aEV1KIU44DMff64qtFATgnNC5waPYMqlJB/W5XSZRfhHXaIz6SFxsyDFpqRc X-Received: by 2002:a9d:5a02:0:b0:6eb:ac1f:773c with SMTP id v2-20020a9d5a02000000b006ebac1f773cmr1104729oth.36.1713509500319; Thu, 18 Apr 2024 23:51:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713509500; cv=pass; d=google.com; s=arc-20160816; b=kH9Fr6zlRa48OfS0/LWiNF/0VcmVUcEUyNaVUFzfsul13CZ5yOt5yfFjf1FVYmrdfp nUmwXJUdpnATtwhQ0gogff0Dn175dyuI1ntkKhWM5mLLqYLU9moIc5rUX5QIG1UxZdrC PIBRm38aJ7eCTdKdSiz7eHVUp48YoaqaSzTNbdijWfyIt/bzFpn1VxtFWmy0FX5KFgDE FaL6Gsx5heyCFoJxr3N0r8boZEZiTBqhIWUuONWOmkvjDP0XvZJrSG7+naScywHGy8hY JnwrwTRpJAHTmylHG7aMhtHBFrcg0aWQ6McI1ptHBQitucHntzmlVcQPIEfvf2X/4vWv RrSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:cc:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Tp4fDh1EM73eA9LppB8jCZQssdvVqY1VS8ada0xBL2I=; fh=BUejZf6qhT+oIsq18l8JXyeb3KMYwdx5b8mDVya5Nzk=; b=ILVFKIMYD/ztJ5/mXGJDNud4GGq4SGRCBLrg0br6J83TtD19xDKE0RSIDygnooHWVs 0rv87nvkqrspsxcBD8C2AUgp0TSjTZ+E12DjFAIbKBGdX0/x5fD6CBhi6xVYhbeMX9Dk MIEP1MEuk/ViljwoJLtK1du1ffeeJeq+wkTrF6ZxL7aNJ3WpSOCj7yJxAkCO+cO4TlK7 8c1QPYBnBkqxeLBN+EUG3eLFe0BmZWHZt/N0CtRtPmbouLyz7U5nGNED2MprbIFNr0TD SqTt3nQeuUhDAWfliBsezvH8d8GbF7HvDg7IgWQ6iHQdRbXLKiIzYP6mrIi4qHuxQzbT QJ6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Hz7scD+I; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-151072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j15-20020a63fc0f000000b005dc4f8a376asi2758600pgi.884.2024.04.18.23.51.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 23:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Hz7scD+I; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-151072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E4EF928149D for ; Fri, 19 Apr 2024 06:51:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D10C3AC10; Fri, 19 Apr 2024 06:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="Hz7scD+I" Received: from mout.web.de (mout.web.de [212.227.15.4]) (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 77B5B79F9; Fri, 19 Apr 2024 06:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713509491; cv=none; b=BJ/XoXFBRgBCKd68FiLogqXopoGYenl2I99iTCfrB0gUQfxnmTfWfOaVYYAJBiW08Gx4N2nMqnQ4Brr09vmxJEDAh2AGEyahmrClozVVmzmDX3NW/17Bv6pqWQgX4+81AS5vNvHxNYaqxzmoFhPadhfSGK22cfKSdYwE1/EY5Hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713509491; c=relaxed/simple; bh=kNV+Cr8IeaPgt0ekBbelYW4XAy06Z4dnET3H5hMF8OY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From:Cc: In-Reply-To:Content-Type; b=Mu/j0TX1HAqCOPOmXvvTs/pwB7ltQA4nRSDTQVJxYCnGTEtEUoC5nUlJBpFycRb1OMIUsE/iRK36X/nF3GrTk9E5I4Zimy2PqCg8UqQofpEOBPmEP6DZ+JySD8Bp3kP9fh1rQqWOqJUrqQf5eMUHlnr1mJpa4njdruduBkMSNX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=Hz7scD+I; arc=none smtp.client-ip=212.227.15.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1713509480; x=1714114280; i=markus.elfring@web.de; bh=Tp4fDh1EM73eA9LppB8jCZQssdvVqY1VS8ada0xBL2I=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:Cc:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Hz7scD+I+gTR5ejWD3rX7rgAzJ2u/DHZkEq+PpdaB8wp2N7HJ8+CxD/vpxCY2svA bXbsciwuAxovyCMSnTBnsqPIaKDlc4qjBc8OuA2RjNuUNFcuv/p/U5uAK1otyyQ0T 6vp3arBHXC4f2+Gbdh+LLtzaExr4Zkr0Vtrg6O1i6xrYOjRGisCZrHluok1heULtq kFNKoJk3kAi4udxJCejt3rpeKz6lohWvjnI2pivqhoSs+oBP/qjn298cSmUT2CEN5 05uIRyQEhNIpYZRHJSoPOcG6rEivtvwKKcEBfESntD/DCuDN5PB/m0i17OvLA9Zks nZ4f/gKLUYKIQJnN/A== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.85.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mhnvw-1sbQd61dvk-00gZyN; Fri, 19 Apr 2024 08:51:20 +0200 Message-ID: Date: Fri, 19 Apr 2024 08:51:19 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [cocci] [PATCH] coccinelle: misc: minmax: Suppress reports for err returns To: Julia Lawall , Ricardo Ribalda , Denis Efremov , Nicolas Palix , cocci@inria.fr, kernel-janitors@vger.kernel.org References: <20240415-minimax-v1-1-5feb20d66a79@chromium.org> Content-Language: en-GB From: Markus Elfring Cc: LKML In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ZqBxasO1k8IZLHBuzwDX0hZEP94LaRo3JlVkMX5m417nUWPFam5 JaWUOpVcL2/fEHCh67X0zRkV687+xjduWG5zNnNaorIpsL+Py5LGtjiJea+eFcdiOk8nwvx ivZbmu4QpPs0M2TY+ArXMJrniBX+QNmYzdY/Zf5WzAbjnqZlvOMDp0Pnu6EtvNNbLPSoMVc oc//e1kok5W4vhTL71wMA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:XpNQKZxqhRE=;nnLa+g7p9oEH0zrRsObeIx72MQP 7vGqAqqLin1TpJLALxWnCj7UqWgZdegrKpV2m2h0nj7/u47fVVyz3boDtdSKm6nBfDxWzQXJa eb/PMN9q0E6asMwSX7mqoCl9/hlTA3PYh4XgK8SJUrRqdZAyYBA5xM8zEOWxAgGlzyPY+ZfoV p3rB7ctc2t3QqP5KnAa45QAJzyS+jrlTBEbAsx5gwqydgPCzGn/sF2N9x9wLPOakqFJ5UhwBx kUrfl1/u0h/k0MQT6KCDYld0Dy8qJIYQbm7ZtuS4MyYYwA806K5DcyUEO7Kk+uz8hH/A2+uR7 kVsLP/bMpHoEMw5CaWx+pa+mAZ92pGG8xP4DE92iUIGqt4RyO8XauzyhMw8sQdyieFbQg80+X 1SDIlZUeyoC2aC4Kzn3n1B8I0/9+CAjm27K+xcf9pMUTJMglKH2FSddfQMGO83+zo7/YAhHRe JuHYzFXkXBjB0Zu4XTzJTAMfQbJhSiN5WoXeZYHV/jLdXF9U62h6iv1gNwEdFlU3tdxGrXzQS G66Qg9LAAHxFw4A2gNl16HSo9jFTz2LCBNUUsErAcMQ2wU/eHZnivan72gRdx3Ymfq7nFBJg0 WUXLwOoCBmRS1jmK55wj0t5FJKm/alZRWLi3XZMi0VjhUYS94TCgl6NAM1cGzu6c6x5Mg+PxS cShZkSOw4EuO+/9kI0Yy8aQWbcbTdmEYdV3hy35Z+pbGE9xwgl7nUsPme4qdJA9b2tR6QIJZy cI+b2WpcGGmI1Eb1rC4+t6FDm8iwnOnRWalGIRwv6sZHUUMhxIHb7BYLKgMp8Pcr4xg3HDDlZ YLXFqrrPPCIb3ZenwQewy76CYfwgMrB6oYu+lVKSah7Gw= >> 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. =E2=80=A6 > Applied, thanks. (Coccinelle for-6.10 branch). Was a planned code adjustment published? =E2=80=A6 >> +++ b/scripts/coccinelle/misc/minmax.cocci >> @@ -50,11 +50,26 @@ func(...) >> ...> >> } >> >> +// Ignore errcode returns. >> +@errcode@ =E2=80=A6 >> -// Don't generate patches for errcode returns. >> -@errcode depends on patch@ =E2=80=A6 How does such a change fit to the usability of the coccicheck operation mo= des =E2=80=9Ccontext=E2=80=9D and =E2=80=9Corg=E2=80=9D? Should dependencies be reconsidered any more for the desired consistency of involved rules for scripts of the semantic patch language? Regards, Markus