Merge tag 'coccinelle-6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

Pull Coccinelle fixes from Julia Lawall:
"These fix a typo and make the coccicheck script more robust by
ensuring that only compatible semantic patches are executed for the
chosen mode"

* tag 'coccinelle-6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
Coccinelle: pm_runtime: Fix typo in report message
scripts: coccicheck: filter *.cocci files by MODE

Changed files
+6 -2
scripts
coccinelle
+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
··· 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)