Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4541772ybn; Sat, 28 Sep 2019 02:43:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzflMezco3+btzgDZSWhAE0FmmDjUC+ZnZEWoK0FXJLVQxXvtfVwZliQKl10fIzLyWsKxUa X-Received: by 2002:a50:9e26:: with SMTP id z35mr9065628ede.265.1569663825478; Sat, 28 Sep 2019 02:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569663825; cv=none; d=google.com; s=arc-20160816; b=irmpop3LJeZwIK+QFayaBLoQqOvWdeM76VfGZhhD2LWGiD7KQh5XAmJyxsdhbF24ad ize23mUnyvgJLbDkDrQ6hrhpY433LysRxQqe02g39mg++gE2ljRQRooiKWBBxe0AV+Mc tR7wOFV5Am7wTVJzBndVUKKtJsODxC3DW/Rtt7CUpMKhFVPwat0hWntauDIGPysMD8LD dLGmLhNoEhVkBjSwm3aeM5Btrt3YHyEsASe4rROyF5SjpXJmsdtDozHg5rxWrFD99Zf1 JeGTT6QmWo/k4OuLB7Clzhgkb8IZzDJwATikkB4HAj6Efp7DOSjt+tRNLXOaO75/1gtO 6U8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=QSNe/db7WaxXbqC9o9ZoVGk8IAhnYaYNEEcbjlPaqZQ=; b=Hbp3srYv99O7bBnPi/KontNra5xDpv51NviwnygooLWdogFT+tt+hVN7eZXBpG+/Jz xWAIN27mFxQBw/DhgvRQrMdsbg45leePdkssMghMWkAVtuBd2ojzKZj6CEVy5yf4D9Aj 3FjkSVbAzIyh5Vh2OMix/3iLiEBU3/fgRiQZ8C/vhqiErDLteKSkjfOdLmRH+Zhc1n3O CTusdEvgIDC1osP1hXW2PF1bz8woeb6/RfSH/a7lZnkREAC7QEckkrcQZKT4+WAr3ER4 hpYm5HpXkVHk9UR6dSzyYPq48HHaKF2BB4SrIjLnFvgwGFODTgQQ1HPQwiBV7laH9/nq d+jQ== 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 jo18si4149614ejb.27.2019.09.28.02.43.20; Sat, 28 Sep 2019 02:43:45 -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 S1725937AbfI1JnE (ORCPT + 99 others); Sat, 28 Sep 2019 05:43:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3168 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725856AbfI1JnD (ORCPT ); Sat, 28 Sep 2019 05:43:03 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EDA6B7E2BF0D9B13C98D; Sat, 28 Sep 2019 17:43:00 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Sat, 28 Sep 2019 17:42:50 +0800 From: YueHaibing To: , , , , , CC: , , YueHaibing Subject: [RFC PATCH] scripts: Fix coccicheck failed Date: Sat, 28 Sep 2019 17:42:45 +0800 Message-ID: <20190928094245.45696-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 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 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. 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