Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F8B2C48260 for ; Mon, 5 Feb 2024 22:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:in-reply-to:message-id:references: mime-version:subject:reply-to:sender:list-id:list-help: list-subscribe:list-unsubscribe:list-post:list-owner: list-archive; bh=4/tAR1tPhnjYDn+0u8joFH/EtGc3hTNVAE6RgOvnWEA=; b=Xv/rgF4LM5kIGAZhLK9P1s1QCFDP2iRmJYLhGRKHTx8dEmlZkMMpzBz6 MIGnxgFtPvcVhGMRyDDwYVH9Sy78PwY5ozNwdGZKLi4pNItoNCgyAAyPH dQdBi5u8wX741BdR7C6PRm78iwVwp/8unFvgjAU09GOzx0YrF7MjkJTGK A=; Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of cocci-owner@inria.fr designates 128.93.162.160 as permitted sender) identity=mailfrom; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="cocci-owner@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com 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@sympa.inria.fr) identity=helo; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="postmaster@sympa.inria.fr"; x-conformance=spf_only Authentication-Results: mail2-relais-roc.national.inria.fr; spf=Pass smtp.mailfrom=cocci-owner@inria.fr; spf=None smtp.helo=postmaster@sympa.inria.fr; dkim=hardfail (signature did not verify [final]) header.i=@inria.fr X-IronPort-AV: E=Sophos;i="6.05,245,1701126000"; d="scan'208";a="150404220" Received: from prod-listesu18.inria.fr (HELO sympa.inria.fr) ([128.93.162.160]) by mail2-relais-roc.national.inria.fr with ESMTP; 05 Feb 2024 23:37:32 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id 4C593E00B7; Mon, 5 Feb 2024 23:37:32 +0100 (CET) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id BF145E008A for ; Mon, 5 Feb 2024 23:37:30 +0100 (CET) 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=4/tAR1tPhnjYDn+0u8joFH/EtGc3hTNVAE6RgOvnWEA=; b=E9lvTxLEY+02970JQTn8myTcuBxNROAZZfzikSX8nzrHMsUNFISJdXYF 1VZOqK8sH0rsSQVQlg8WbubTUueIFxF2vddE5mVNKC2GEjoW/OrXk8czO EMrC7KiYr4k5FlPM7/ZBYoYmqYT09cMj9njiaT254qugs5CNGVKoxqzBL Y=; X-IronPort-AV: E=Sophos;i="6.05,245,1701126000"; d="scan'208";a="150404219" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 23:37:30 +0100 Date: Mon, 5 Feb 2024 23:37:30 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Jakub Kicinski cc: cocci@inria.fr In-Reply-To: <20240205095637.54f3f450@kernel.org> Message-ID: References: <20240205095637.54f3f450@kernel.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [cocci] spatch --use-patch-diff broken? Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 1500 Errors-To: cocci-owner@inria.fr Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Mon, 5 Feb 2024, Jakub Kicinski wrote: > Hi! > > I've been trying to run coccicheck with --use-patch-diff > to try to limit the number of processed files. I _think_ > it worked when I set it up early last month but recently > I went back to check and make coccicheck stops after > the first spatch call, all it prints is "hd" > > https://netdev-3.bots.linux.dev/cocci/results/452585/new > > spatch seems to work fine when run without --use-patch-diff > cocci version is the latest from git as of $now > > FWIW the git hashes are from this tree: > https://github.com/linux-netdev/testing.git > (probably best to clone that thing with --depth $number) What number do you suggest for the depth? I tried 1000 but I don't have these hashes, thanks, julia > > > Example: > > /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/err_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 48 --chunksize 1 --use-patch-diff b9f2444cd114a7f9c44950dc850aa1753b3edd94..be5bf59888403413619dd74e0d5f5386ffafbc90 > grep: warning: + at start of expression > grep: warning: + at start of expression > grep: warning: + at start of expression > hd >