Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3069822ybp; Sun, 6 Oct 2019 04:11:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr4ikLkEo0bLHhYv7ixedRmPZM1vhSZm+bLLZhE1OkO1o9SpjPomqAntFrxsw2KG7+yRB8 X-Received: by 2002:a17:906:4a5a:: with SMTP id a26mr19426594ejv.154.1570360301341; Sun, 06 Oct 2019 04:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570360301; cv=none; d=google.com; s=arc-20160816; b=V4SH01EknmWq6YNRuNSzfm0DAEiQhH9j2JU+G6hKl6SbI5E5nkxOOn8WrW/X9yVtpD 7JS/ARgDgd3r9XnLv7gUPfsFphmmpauLNQ8l2IHLzCEzmnFtfR1VJVEl2mt20pHAmwLz VV0SweEqugkCYcT7og7K42kzYlOFL4e+orM4E/p6IPe1t6K5RPQp4PDkl5/X6XUkN+0r UMByZntdKhZBXuIp34Vuy6axqnQJbwPKXxiiTLr4OoCHWHARx+Q+65rtc0PfcrmUxj7F LkJPjZ2glUTA56hx5TRw5iTRqONST7l+f+Fj6EyUXQVOk8dM+LkFsxkRVnQNqd5cK8vz rrdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KNc82HtJTr2S9yPplsKQ29xKge0h6KdPsl2jhs4BKZo=; b=XLupad8GuGAq6mKQzkn2Q4PZTqA2GX5zV+NRM40NOBUI9+cWoN3c8H2hHZtfEaoFZl GmsEyxh3C2yFQCvAX6hY0O+MF7IUAmqkGoJHKDGNdHOmzTIq6B34FGMx5tnLBmHt9kqQ Yb1fkMGX5MyOx3oWJsrH81sDGrEGBrV7uSpYLJR8bYuMw3E0kwRFUBoIBL/jCGeGL9qL k0dpYW83BUJ78fyGn72wzVUaajmin55GlCrRLcitZ5DItBSNf/ImdwYd61NhcppkWSkb CO+qD/Eala1s96KH1c2Dh7Aaig2Bf7paQ/YFqKGqKe0Tr1SuB9MCF3nzuLpwsqm2IOSz gF3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TEnZSkbF; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si5436449ejb.393.2019.10.06.04.11.17; Sun, 06 Oct 2019 04:11:41 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=TEnZSkbF; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbfJFLJr (ORCPT + 99 others); Sun, 6 Oct 2019 07:09:47 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55433 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfJFLJr (ORCPT ); Sun, 6 Oct 2019 07:09:47 -0400 Received: by mail-wm1-f68.google.com with SMTP id a6so9703549wma.5 for ; Sun, 06 Oct 2019 04:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KNc82HtJTr2S9yPplsKQ29xKge0h6KdPsl2jhs4BKZo=; b=TEnZSkbFr2A7oUM78IHHed3IlgHh0tmkpH8RDssbiR0+mBCHkQe9H1Qxx+vWm2PofE sGToOgCFb6hXoCRurvp2anQnTqIH03RhsFu2lxcDV8uagaxEWpHnmGBp14zXgB7Ji5DK yQkA74rsANN+bsj7tBFGADqhxFVNGCwn0vccgfBJC0S4ul+XS2NGUWI8kKL36SXIEoGi Ys368zcUKr4s1+elLPyEJlWSfNOLEUzVoGLdBwmiXWNtuyUiFQ1CDc8EcteynP4OG/+P 1JPy+3ec+C6ru4Rw7bsV4fQWWQz7c42N/jqxS6luY8aIfxhWUly2EHxSYvZRsFg+emn2 lNOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KNc82HtJTr2S9yPplsKQ29xKge0h6KdPsl2jhs4BKZo=; b=BBPpX26xpfdi5SYjjAuGbQhS0Xjhu8xU236yXaQJkGy0XuiiVN3ZBmjt8B51ZkjAqm GQLMmYes5415DtGQomBBlKRuiElx748Dl5Q+1bt+XHVrD4X7NsonbgchTAtFbI9C8XvV NEpf8vCqJDCVT2KX0n5DKRlrOVkrqUe5ZkTrfITvQfu5x1W3k7xI3XeoeyW7rttexaPz wOyc12EN0eP7AACLs9Xr2/1iGVbWMTAYdLrH2zvfJY+odJwVN/SLBTH0XJAIRZLIyTmJ PEZYkiZpt5QyKKGtHBAD8IpUNvpXrnMDhXHWbc0SZrShCDt1t7k3mvCH2CQtGgRnNQjY KENw== X-Gm-Message-State: APjAAAUBR0tCKGW+9cEwTxkxiR6/o/wrlt1p57KChWdTI0irXPa9JE9W 3DNmsz4yZUs+lRm8Tge0tLiiEg== X-Received: by 2002:a05:600c:2311:: with SMTP id 17mr16465507wmo.39.1570360184748; Sun, 06 Oct 2019 04:09:44 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:e8f7:125b:61e9:733d]) by smtp.gmail.com with ESMTPSA id n1sm21203796wrg.67.2019.10.06.04.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Oct 2019 04:09:44 -0700 (PDT) Date: Sun, 6 Oct 2019 12:09:43 +0100 From: Matthias Maennich To: YueHaibing Cc: Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, michal.lkml@markovi.net, jeyu@kernel.org, gregkh@linuxfoundation.org, yamada.masahiro@socionext.com, Markus.Elfring@web.de, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts: add_namespace: Fix coccicheck failed Message-ID: <20191006110943.GA172281@google.com> References: <20191006044456.57608-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191006044456.57608-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi YueHaibing! On Sun, Oct 06, 2019 at 12:44:56PM +0800, YueHaibing wrote: >Now all scripts in scripts/coccinelle to be automatically called >by coccicheck. However new adding add_namespace.cocci does not >support report mode, which make coccicheck failed. >This add "virtual report" to make the coccicheck go ahead smoothly. > >Fixes: eb8305aecb95 ("scripts: Coccinelle script for namespace dependencies.") >Acked-by: Julia Lawall >Signed-off-by: YueHaibing Thanks for fixing this! Acked-by: Matthias Maennich Cheers, Matthias >--- > scripts/coccinelle/misc/add_namespace.cocci | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/scripts/coccinelle/misc/add_namespace.cocci b/scripts/coccinelle/misc/add_namespace.cocci >index c832bb6445a8..99e93a6c2e24 100644 >--- a/scripts/coccinelle/misc/add_namespace.cocci >+++ b/scripts/coccinelle/misc/add_namespace.cocci >@@ -6,6 +6,8 @@ > /// add a missing namespace tag to a module source file. > /// > >+virtual report >+ > @has_ns_import@ > declarer name MODULE_IMPORT_NS; > identifier virtual.ns; >-- >2.20.1 > >