summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-10-06 07:44:56 +0300
committerJessica Yu <jeyu@kernel.org>2019-10-07 17:37:53 +0300
commitc7c4e29fb5a422fd144b3fb0d3e32375d8f9b0ba (patch)
tree90d00c0d9e69ca74160bb8665b464cc26634d9ba /scripts
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff)
downloadlinux-c7c4e29fb5a422fd144b3fb0d3e32375d8f9b0ba.tar.xz
scripts: add_namespace: Fix coccicheck failed
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 <julia.lawall@lip6.fr> Acked-by: Matthias Maennich <maennich@google.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/coccinelle/misc/add_namespace.cocci2
1 files changed, 2 insertions, 0 deletions
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;