+5
-1
scripts/coccicheck
+5
-1
scripts/coccicheck
···
270
270
271
271
if [ "$COCCI" = "" ] ; then
272
272
for f in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do
273
-
coccinelle $f
273
+
if grep -q "virtual[[:space:]]\+$MODE" "$f"; then
274
+
coccinelle $f
275
+
else
276
+
echo "warning: Skipping $f as it does not match mode '$MODE'"
277
+
fi
274
278
done
275
279
else
276
280
coccinelle $COCCI
+1
-1
scripts/coccinelle/api/pm_runtime.cocci
+1
-1
scripts/coccinelle/api/pm_runtime.cocci
···
109
109
pm_runtime_api << r.pm_runtime_api;
110
110
@@
111
111
112
-
msg = "%s returns < 0 as error. Unecessary IS_ERR_VALUE at line %s" % (pm_runtime_api, p2[0].line)
112
+
msg = "%s returns < 0 as error. Unnecessary IS_ERR_VALUE at line %s" % (pm_runtime_api, p2[0].line)
113
113
coccilib.report.print_report(p1[0],msg)