Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4688608ybn; Sat, 28 Sep 2019 05:46:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkHp6KCIRF66QzfLaVHGUJJ5xL337t2Q6HPcnYB+BvqErYk/6MCoIYJTkuDAIes1VlcX+x X-Received: by 2002:a17:906:e2d8:: with SMTP id gr24mr11474684ejb.55.1569674772035; Sat, 28 Sep 2019 05:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569674772; cv=none; d=google.com; s=arc-20160816; b=DMQ5TLMyQVcZkx+IJ95dSJY5nO0fvXW5hAuqtvx2D2yWXexHX5wxgpSNiHsLkT2QNu Q4wZiA7wIP5U47tgDfcQmHIFsHJyqgFnlbNUYUDEqz3qXTfdCryPxr++Iig3EuwSOjvL D8Xh8NBhe7BROOLj98r3bXN56hgJdVQm1DCbElKKdwVLcaphNeSVID0i72pyLcaZW/nb sgVEg4D3kd+Y3Ly3i4fgHuSJAj75aJd0jLfoKk4dY2AeWSNU8bVSWO1qQZ9quK/9236V fdcybeCKyirYqE4KLsFTV2KJ62p/oFm89upOMljT/vWPaeNejVecarKOSzs1B1cdXjtN 7t6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=1yh1FRFq6TvK7LxbIBL7/9vnVPLG/BObk8K/mokfaj8=; b=etraoChBAYd9TtNk3rHD3PtrmykGWvInnTYHj/vqa95m0+YJPYE516sM0e6Xm4BatB fxpa0DTrmDhALNE21Byyzun48wDDCvUlEJRVmseEMoQ4DyCyyCAZzn0Qlszg0sNqAyCW W63WbNuz8GUwwS01SLbBNHyNLePi/eTfDtg+Kkh8pD/Kwjwiuzw+RK+y/iNkpjbbAsDn AV/WlQrYN1H2xzbAPSJCygYpPuiioRVM1+TttPNJFIvfRF9Z2uwUV0ACfxAE3IcB0SZm wCJTVcUR2X5WbkSnulqf/9qJQkWdztHBPS0SQnR8CyA99qusXiEmtc2XXnLDQxh3JYif IN6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oz25si4037810ejb.175.2019.09.28.05.45.47; Sat, 28 Sep 2019 05:46:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728569AbfI1MoE (ORCPT + 99 others); Sat, 28 Sep 2019 08:44:04 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:8747 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfI1MoE (ORCPT ); Sat, 28 Sep 2019 08:44:04 -0400 X-IronPort-AV: E=Sophos;i="5.64,559,1559512800"; d="scan'208";a="320939417" Received: from unknown (HELO hadrien) ([12.206.46.62]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2019 14:43:59 +0200 Date: Sat, 28 Sep 2019 05:43:57 -0700 (PDT) From: Julia Lawall X-X-Sender: julia@hadrien To: YueHaibing cc: Gilles Muller , nicolas.palix@imag.fr, michal.lkml@markovi.net, maennich@google.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [RFC PATCH] scripts: Fix coccicheck failed In-Reply-To: <20190928094245.45696-1-yuehaibing@huawei.com> Message-ID: References: <20190928094245.45696-1-yuehaibing@huawei.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Sep 2019, YueHaibing wrote: > Run make coccicheck, I got this: > > spatch -D patch --no-show-diff --very-quiet --cocci-file > ./scripts/coccinelle/misc/add_namespace.cocci --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/kconfig.h > --jobs 192 --chunksize 1 > > virtual rule patch not supported > coccicheck failed > > It seems add_namespace.cocci cannot be called in coccicheck. Could you explain the issue better? Does the current state cause make coccicheck to fail? Or is it just silently not being called? thanks, julia > > Fixes: eb8305aecb95 ("scripts: Coccinelle script for namespace dependencies.") > Signed-off-by: YueHaibing > --- > scripts/{coccinelle/misc => }/add_namespace.cocci | 0 > scripts/nsdeps | 2 +- > 2 files changed, 1 insertion(+), 1 deletion(-) > rename scripts/{coccinelle/misc => }/add_namespace.cocci (100%) > > diff --git a/scripts/coccinelle/misc/add_namespace.cocci b/scripts/add_namespace.cocci > similarity index 100% > rename from scripts/coccinelle/misc/add_namespace.cocci > rename to scripts/add_namespace.cocci > diff --git a/scripts/nsdeps b/scripts/nsdeps > index ac2b6031dd13..0f743b76e501 100644 > --- a/scripts/nsdeps > +++ b/scripts/nsdeps > @@ -23,7 +23,7 @@ fi > > generate_deps_for_ns() { > $SPATCH --very-quiet --in-place --sp-file \ > - $srctree/scripts/coccinelle/misc/add_namespace.cocci -D ns=$1 $2 > + $srctree/scripts/add_namespace.cocci -D ns=$1 $2 > } > > generate_deps() { > -- > 2.20.1 > > >