Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1996027lqp; Tue, 16 Apr 2024 04:33:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpOpnrXdYiDZvRSSNV+JOcP+U/qNYAqaBYxxAS+xhUERrrQpNv8bgNeXYSeD4IX/LL1hrzaDhmp4XOo+LLoRHRA56gnwBPMXpXck+Yaw== X-Google-Smtp-Source: AGHT+IGKfaoB2FoAmDeJTQmlxlR8b3mMMK4JYLv00mrPi/6Qq8EuynAPUAxusO4Cf717zPydmUBx X-Received: by 2002:a05:6214:b2d:b0:69c:9d5c:4181 with SMTP id w13-20020a0562140b2d00b0069c9d5c4181mr2315241qvj.32.1713267197138; Tue, 16 Apr 2024 04:33:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713267197; cv=pass; d=google.com; s=arc-20160816; b=E//twYCZx6cAbg0r6DgFeyAxtxT8v5V0oXuYmPlYEKubu00bWK9H6B4q5CpaOc7YbW lLElVbCUtVYcN/oCUXZSvfNT1jrXVzNdYE91bKdTCZleBJ18Z7lyl7i/S9zKw4YGA49S kcUOc7soSii5rifiKaSgdqaPzXnRm6DJneh9JiSd/oL7Xop+AQf0l6PJYSsXFmunYo7l dhS5dzW/1Ng+WFQ9RdFuK2KI+zPvXlt3o4XEE/BiZ1RIB0qArxZZFlro2wHbTK2LK0bD FYkb49Hcat66TIZxll6t6maR5juOw328by3GztoDAquUtypV5CUf/sxXguLbKO5gIfTF 64cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=lwJdmAUAGjo5XlKYImrypGenO5EDNxyflFLlUfqTWMk=; fh=qz5YIRNMVMELXmT2sZkqWm/D0j67+rphdOEowog8JHo=; b=e2UH2wD4XG+KizyYiuAyUxnQuHkT4qVXQmFg/xgCBMTCJ7KV5tmlV888UMuC1Vj9Ex sTNYOYN8MTuZbV4sViL/tPcr9xsKc/SkGlrZdCAnCTPxPNbAfIT8AwO4PSpAzoc+35HG YERrF6pPnyaOJYxGECEiIl4/Ob/6NR/u26I8Sx6ruu0rx2+Y7t+4ofbe2jdIVXkuBI6+ K8upn3d0l58WTF40EQFcj6h2ptYvKJVu3Bi50iz5NYqT5p8hWg9wG5YvE7g6xa3pzNag p3Icl6TzXcVxvTt2tVXM/rUI8ZbP6UJcdYQ5QBTxYjr6cNArKKC7IiXJdZqQNZAn+8ZW ce9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WL2ijIa7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t10-20020a0cea2a000000b0069b69c5f075si7126626qvp.192.2024.04.16.04.33.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:33:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WL2ijIa7; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146709-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 CCA041C20FA1 for ; Tue, 16 Apr 2024 11:33:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C502E1292F3; Tue, 16 Apr 2024 11:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="WL2ijIa7" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 692B212838F for ; Tue, 16 Apr 2024 11:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713267194; cv=none; b=ffVt/SkLcveg18VSnmg8iIlIlDnW3rP66YvCM01sQcPVzauXU1e9MStCmL8HBaJfyceLsj+Lu+xVnpo2r+gYw7M5J9AG8ltu/CyZTFDg5pimLLNBHx6arc+3t2fsMChugJwN9OusWFMWFLd/lz6aA2FB7gNyx8DPve/Fm63jVjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713267194; c=relaxed/simple; bh=/J/j05/+16uopVTGFKC52nqDPULfg6d/l94dzwLNwzs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Qwdlgc0jQhOKGdcenljiGkRs1RQuzxua/azD2XP7M+H7fRcNmF8pHsGZ662efH3anaaqbJDTlOe057lp3Ss0SWNgx+o+e4PUCeyifR4s03MEAYPRSO9uHbGcawl7pzToe0+3BK8bFL69G9xXruIbQbRhVN2W52Lt8CNCU7J3tfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=WL2ijIa7; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a52223e004dso481690766b.2 for ; Tue, 16 Apr 2024 04:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713267190; x=1713871990; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lwJdmAUAGjo5XlKYImrypGenO5EDNxyflFLlUfqTWMk=; b=WL2ijIa7aQq2J07tAjiYkksPVOhjozdaJGuc7o5EmPEvGXPo+oONl5LfKZKSlQlxBu FpIWRZXVv+Smsa3YvG/LfqxyeRNyP+QqAKmB5ozA4odOQQxdMB9cwGz4g0U7yl42KE3v wUuiTHbWoBF4j5a0DLb/VTho+qtf8lm0+TTP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713267190; x=1713871990; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lwJdmAUAGjo5XlKYImrypGenO5EDNxyflFLlUfqTWMk=; b=bshC1r/iKk2mZ/QIugCjOHCpa8340PJ30kLqnViFfiODE4xTP+VBVRjbUSSsJH9OSZ D2ZY7fSnhXPfZNoI4E33TokjiDmLDq6kIItIk2LX7IOblz37PJfHNqeQNFno4OnlrkuX Abpwhilor56kGhUquKYwdHzMVVFnNOulVAh2iFKKrWl7DDmQbHn06O1JnHOpvJZTFKzF gEgNeZg+UHnz014ChShIiFJ5ChfbzVE8ZaHg5QrLe7LcRezdZSi6PTodCZ1/sSjf7K/t KOAvAXxbgdokBzDwVhrZpmW4vui+u+ixXOmyjbiNg5K56StrguT1DyifpXEx9eiQtXwJ 0I8Q== X-Forwarded-Encrypted: i=1; AJvYcCU+RuAhcTyRK4MCN5XBah7krBKS81jKsn32b9YApgtFl3eCap1NObTc15hEBIalAwC1nYGqij9u/yNFq83s5DZmZkyUHMCgEF5gDmmg X-Gm-Message-State: AOJu0YyYUg9LmEfKMvJEX00yc1u4vBOcbk7A9cQHnDjUJHF1RPH8oS06 pURFDp5t/ujeYQJy/ZIszUNLeGEMzCq1ev6KjP+2CYkC6qzYTnI21Qhj8gEaQ1rLG7ViWa+adLk e6WrC X-Received: by 2002:a17:906:6b8f:b0:a52:5493:a0b9 with SMTP id l15-20020a1709066b8f00b00a525493a0b9mr5868150ejr.39.1713267190675; Tue, 16 Apr 2024 04:33:10 -0700 (PDT) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com. [209.85.221.45]) by smtp.gmail.com with ESMTPSA id y24-20020a1709063a9800b00a5268203c85sm2860129ejd.107.2024.04.16.04.33.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 04:33:10 -0700 (PDT) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3455ff1339dso2931994f8f.0 for ; Tue, 16 Apr 2024 04:33:10 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWl2BluwVpHmekQzYpdLk1/FpzX29VTrdhze57DlHswktKDERdYsJdmjHHSDgEJbRO0zzDsOp8FlPY99a8+q8l604Npf+zeGYXOiKfA X-Received: by 2002:adf:e80b:0:b0:341:c210:3d1b with SMTP id o11-20020adfe80b000000b00341c2103d1bmr10320976wrm.8.1713267189995; Tue, 16 Apr 2024 04:33:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240415-minimax-v1-1-5feb20d66a79@chromium.org> In-Reply-To: From: Ricardo Ribalda Date: Tue, 16 Apr 2024 13:32:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] coccinelle: misc: minmax: Suppress reports for err returns To: Markus Elfring Cc: Julia Lawall , cocci@inria.fr, LKML , Denis Efremov , Nicolas Palix Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Markus On Tue, 16 Apr 2024 at 13:30, Markus Elfring wrote: > > =E2=80=A6 > > +++ b/scripts/coccinelle/misc/minmax.cocci > > @@ -50,11 +50,26 @@ func(...) > > ...> > > } > > > > +// Ignore errcode returns. > > +@errcode@ > =E2=80=A6 > > I see that you would like to omit the specification =E2=80=9Cdepends on p= atch=E2=80=9D > from the previous SmPL rule location. > > Would you really like to influence and adjust SmPL code any more > according to affected coccicheck operation modes? I probably do not know what I am doing :), it is my first .cocci patch. If I leave the "depends on patch", then the change is ignored in report mod= e. I think errcode needs to be executed in report and in patch mode, but there might be a better way to do it. > > Regards, > Markus --=20 Ricardo Ribalda