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: eb8305aecb ("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>
This commit is contained in:
YueHaibing 2019-10-06 12:44:56 +08:00 committed by Jessica Yu
parent 54ecb8f702
commit c7c4e29fb5
1 changed files with 2 additions and 0 deletions

View File

@ -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;