Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2819214ybp; Sat, 5 Oct 2019 21:48:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVnjDv8ZFnqKdMnZzR3P0plojynbDMRksVSrgJKkoxVY9Pyp2CDPIEeeWDiWKUm8VyNAhf X-Received: by 2002:a17:906:5c01:: with SMTP id e1mr19073632ejq.209.1570337292513; Sat, 05 Oct 2019 21:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570337292; cv=none; d=google.com; s=arc-20160816; b=i/x88XY3itpa73LvdBrG2RjL1TwMOG2+UI7XVqfGzTuqDjqG00IjhCuDDnRD9mb6by Nqh1ujdvf8HGZao+veW/I6kSr135cGjjYU4hfQ4oIIoW10QVz4+FYTZaa1hYpEXc8ylS B99FO8c0rdJKVANYezhk/70myrv7R8qRc2yKEiqrckDRsoibOMXKFt4PL+jZG7A+Pl3I Ck+n+4V2xaUZWmHaIySX3SaOKysPBW5tOVStIVs3OjUyDDBh9/kwoAP2oPdW+V9Rz9SO KMdjgk+K1I6mA3trst3UiQvIc/kHsKYgPPwypxRCBgJbZXe2BxSz/Rg7WFvJCHrjROYZ diZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=HeknlQ98d81mnffiCtmmeLkkKrkoMKfvdXVa1JvZfpU=; b=UDB/WqPPCpBOLMWsdcTbYPiVLpA/cFosyo6zJaB0Pm4Zl1+KnZDeBhQ6pwnLOiikY1 cExxUJPsml5MfymUkevqwCmQYR+CG0+bkWobYD9Mm1yWBRH424fMuFUfb2w/WoIotljn s/YsM34eXo2Qi9nPlvihY3P3j6mBdHflaQFLpViPEU2AKxMUybcIQFpooAVkUvy/Xg9G T+cKC0pNdiETDb2cL/qwF75gy3p5cv4vQekDggwtit0zCfBrhhh4djWP6cgcNqoFF47z EEmRrJz4JdOs+8RFraXVA8c+I7e3h7JFPVkWU3Pk/3L42sp+7tlonwOlId8BE7KarMxc J0nw== 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 x47si6607138eda.396.2019.10.05.21.47.49; Sat, 05 Oct 2019 21:48: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 S1726185AbfJFEps (ORCPT + 99 others); Sun, 6 Oct 2019 00:45:48 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3249 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbfJFEps (ORCPT ); Sun, 6 Oct 2019 00:45:48 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 21C9011A9C1C129B634B; Sun, 6 Oct 2019 12:45:45 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sun, 6 Oct 2019 12:45:35 +0800 From: YueHaibing To: , , , , , , , , , CC: , Subject: [PATCH] scripts: add_namespace: Fix coccicheck failed Date: Sun, 6 Oct 2019 12:44:56 +0800 Message-ID: <20191006044456.57608-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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 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 --- 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