Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5344114ybn; Sat, 28 Sep 2019 19:06:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5lD+/jEUjc4p0cmD7MD+lrOID7SvKTC9FdwJM72CX+UtDiudetPl8ZB/H8anW75rT/ON5 X-Received: by 2002:a17:906:ecf6:: with SMTP id qt22mr13880452ejb.212.1569722795192; Sat, 28 Sep 2019 19:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569722795; cv=none; d=google.com; s=arc-20160816; b=u3iSpz0nKAjm6HcSb+bQ9h7A5zcl5i0APR0tOCy/Am9WoQ+QZAD96XM0oKtvctLSoq BISeaJi0TTSzWeJJCi6ZfZc774eaBeL0JyqtKzmZFNpsIEZvUtCwHLNAPTGpxr8SPQrq vzpYQXQL/xVutRO++ICGSesFYFwnyEZITY5jWh4DkJ6ZQ1T6nsCEqoCM572ecQCe03Bg NqrW28GJN8WVCYL69QAIThZbfA5ZFlxxzyj+BS2rxeAWBMfy6rQB6Wm043GWB+kjnbV2 LtUzbHKr3kpVf+owAgp6HXBgEm9YvCeKBXE1v9cYBFhlQxoQnb7A0wpy5YE950jdiHv9 nO9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=q+7YaFfbWlrZELftuuAlbtIlQqk6C10IIsx1ym0E+o4=; b=MF4vmhLm38VYGslvGtxMxim4pqJ16WXIGDbOmHHE89MCWnVFD7CqKUiGQSHgjJBX0T r+9ftufcMAr2OVxA1mLt5IOosazJeXQhQoTgB0ASlwKd/lgQCHrrY14D415Y0hvmZAEV 4yIojr3Mxc7eeDfExXCrTotDcyjX6kjtyRB5bcMntT9iW143oEbXVsJYXQ7qXi9tfpoA Q634NDPivbX0ymhfiVXXm7Pyfw4wvXs30mDzceKkafvdsofLnaCyXFgTbtDF4lJRFD0X Bk2ctpsEYBVqt1jaCJYI07cSXWevmycgk9tkb3UL7rZwX4wcNQkUm13X9Qz477XznKbr +jDQ== 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 m22si4806911ejr.368.2019.09.28.19.05.45; Sat, 28 Sep 2019 19:06:35 -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 S1728849AbfI2CFM (ORCPT + 99 others); Sat, 28 Sep 2019 22:05:12 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37384 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728569AbfI2CFM (ORCPT ); Sat, 28 Sep 2019 22:05:12 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CF3A645BA623D5B0E6AA; Sun, 29 Sep 2019 10:05:09 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Sun, 29 Sep 2019 10:04:59 +0800 Subject: Re: [RFC PATCH] scripts: Fix coccicheck failed To: Julia Lawall References: <20190928094245.45696-1-yuehaibing@huawei.com> CC: Gilles Muller , , , , , , From: Yuehaibing Message-ID: <2c109d6b-45ad-b3ca-1951-bde4dac91d2a@huawei.com> Date: Sun, 29 Sep 2019 10:04:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/28 20:43, Julia Lawall wrote: > > > 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? Yes, it cause make coccicheck failed like this: ... ./drivers/xen/xenbus/xenbus_comms.c:290:2-8: preceding lock on line 243 ./fs/fuse/dev.c:1227:2-8: preceding lock on line 1206 ./fs/fuse/dev.c:1232:3-9: preceding lock on line 1206 coccicheck failed make[1]: *** [coccicheck] Error 255 make: *** [sub-make] Error 2 > > 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 >> >> >> > > . >