Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp79578rdf; Thu, 2 Nov 2023 14:28:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj0G1SjO05qrFymwyt4U9weAy9U4pTrztQN6vbdf/BXZzfS4RurORQa2xW3Vm6qscW4UP+ X-Received: by 2002:a17:90b:3a8d:b0:280:892a:75ab with SMTP id om13-20020a17090b3a8d00b00280892a75abmr841980pjb.10.1698960491229; Thu, 02 Nov 2023 14:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698960491; cv=none; d=google.com; s=arc-20160816; b=mjCQDy7OnCUsxBQ+B1ECJsv27TRNpZj52TuIPZTvSR2ORoO0PEmGti8FSBesWJTyC9 WmrAOlIVtVQvkWSgGdrbwjnWx7jdUd526la0j3TDEhlMVSUwh3AsrVIBATVw5T1KExFm 93+w3Lu1VGiKm+GE5mVO5f3ZIX+PddhJXBUDZlsiQmIuVEIiUeXMis5/fRJ04Ek8+7o4 3vv0S6/zkOn0FVSl242p/cu2HNif5KKYPiY8u63jQ8+OERn4uYI9W+Gh83qIq5j+zseu fyr3gzHlaDJ6jy4DTzepOt4b+TO5NLIOh7RAiOkIZpW9V35Xxsvca/CA0gCT2t6wZFdv KnLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=Z1NpHf+ickCZ3JZZnaLgy5uvJFGYSq4e+2hH9vxGT6o=; fh=j+BDpN/uznkXDMglK2OhVYz4Pz+BxwjwCjRz6AmmQUU=; b=TCImU0wpPFuyfe/NWwKwMRG1uEhZQDWg+RwCCqaVP7KV30mt6KK4+47f0Q5MUa5aX6 wLaXJiklLPAe5DDo6hP9dq3YnWCdeJ8+6ordJVSB+H8zkkvYY++VIM5l/9aAU0C7+02X nj1gEqi8o9y/ljgm4VHbIzUDyCDgWv418JfJ4ckDSDcO5rbvjHYpKhkixclFqhhK6dnL mX9ifMDoBdCIxNZHjH8AS4zrHq70wTO3DZX5kT3UjK7kt/8OMtqgA8xcJMdC1jus880K m3Z0NqzpOd7ytYWkdStjTvUcN3UeIXARgZ+hsu1CNxoadhke5uqfnkpwazMo93539ngg saRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=IHMb2YOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id np8-20020a17090b4c4800b002804113621esi463797pjb.100.2023.11.02.14.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 14:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=IHMb2YOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2029782D7644; Thu, 2 Nov 2023 14:28:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjKBV2F (ORCPT + 99 others); Thu, 2 Nov 2023 17:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKBV2E (ORCPT ); Thu, 2 Nov 2023 17:28:04 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A5A187 for ; Thu, 2 Nov 2023 14:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:message-id:in-reply-to:references: subject:mime-version:content-transfer-encoding; bh=Z1NpHf+ickCZ3JZZnaLgy5uvJFGYSq4e+2hH9vxGT6o=; b=IHMb2YOCDY/Dv59PibWzdT7rnd/tiFfKfWS8YWCLriD7l9Y5xWoRpLUC r/KtHrOrr7Kdrfa3mignup/JCpmeEaMI4ppoaLscBml/CpoW1TYzzRXPb xwrSAB1hhcsh9M9M8drp/q6RryA1smqfYEtDxPsc8QYKEWz6XqFG2WT0p o=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=julia.lawall@inria.fr; spf=None smtp.helo=postmaster@zcs-store9.inria.fr Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of julia.lawall@inria.fr designates 128.93.142.36 as permitted sender) identity=mailfrom; client-ip=128.93.142.36; receiver=mail2-relais-roc.national.inria.fr; envelope-from="julia.lawall@inria.fr"; x-sender="julia.lawall@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@zcs-store9.inria.fr) identity=helo; client-ip=128.93.142.36; receiver=mail2-relais-roc.national.inria.fr; envelope-from="julia.lawall@inria.fr"; x-sender="postmaster@zcs-store9.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.03,272,1694728800"; d="scan'208";a="134394949" X-MGA-submission: =?us-ascii?q?MDEeuemg07ECtdgWwyBF/gXCatUf0rYEVG2UuN?= =?us-ascii?q?CMQzu8WX+yqMTLVDDYMsQipOJ8h8IkBPjzTs7OXOBRZ2e0dhDAtxC34L?= =?us-ascii?q?5EmbC4dC1LSlo7HgZLTxfzrEUT6x5t/GDDzk3DzsWq/D2DGrZXU1K3oG?= =?us-ascii?q?MnpCc/Zg1XYaJew9Ktk91WJQ=3D=3D?= Received: from zcs-store9.inria.fr ([128.93.142.36]) by mail2-relais-roc.national.inria.fr with ESMTP; 02 Nov 2023 22:27:56 +0100 Date: Thu, 2 Nov 2023 22:27:55 +0100 (CET) From: Julia Lawall To: Anton Eliasson Cc: nicolas palix , cocci , linux-kernel , kernel@axis.com Message-ID: <978265928.4471013.1698960475973.JavaMail.zimbra@inria.fr> In-Reply-To: <20231003-coccicheck-v1-1-07d2d900a52a@axis.com> References: <20231003-coccicheck-v1-0-07d2d900a52a@axis.com> <20231003-coccicheck-v1-1-07d2d900a52a@axis.com> Subject: Re: [cocci] [PATCH 1/2] scripts: coccicheck: Return error from run_cmd_parmap MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [92.89.85.231] X-Mailer: Zimbra 8.8.15_GA_4562 (ZimbraWebClient - FF119 (Linux)/8.8.15_GA_4570) Thread-Topic: scripts: coccicheck: Return error from run_cmd_parmap Thread-Index: /FuP+QpGx8nmd9ShkUiiXS4mQsbSqA== X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 14:28:10 -0700 (PDT) ----- Mail original ----- > De: "Anton Eliasson" > =C0: "Julia Lawall" , "nicolas palix" > Cc: "cocci" , "linux-kernel" , "Anton Eliasson" , > kernel@axis.com > Envoy=E9: Mardi 3 Octobre 2023 16:25:14 > Objet: [cocci] [PATCH 1/2] scripts: coccicheck: Return error from run_cmd= _parmap > Exiting on error breaks the chain mode. Return the error instead in > order for the caller to propagate it or in the case of chain, try the > next mode. >=20 > Signed-off-by: Anton Eliasson > --- > scripts/coccicheck | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/scripts/coccicheck b/scripts/coccicheck > index e52cb43fede6..95a312730e98 100755 > --- a/scripts/coccicheck > +++ b/scripts/coccicheck > @@ -153,7 +153,7 @@ run_cmd_parmap() { > =09err=3D$? > =09if [[ $err -ne 0 ]]; then > =09=09echo "coccicheck failed" > -=09=09exit $err > +=09=09return $err > =09fi > } >=20 I tried disabling OCaml in my version of Coccinelle and then ran make cocci= check with this patch. But I didn't see any improvement. On the other han= d, it keeps going if I just remove the exit line entirely. Is that what is= wanted? One can still see the coccicheck failed message. julia > -- > 2.30.2