Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'cocci-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

Pull coccinelle updates from Julia Lawall:
"Changes in make coccicheck and improve a semantic patch

This makes a couple of changes in make coccicheck related to shell
commands.

It also updates the api/atomic_as_refcounter semantic patch to include
WARNING in the output message, as done in other cases"

* tag 'cocci-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
scripts: coccicheck: Use /usr/bin/env
scripts: coccicheck: Avoid warning about spurious escape
coccinelle: api/atomic_as_refcounter: include message type in output

+6 -6
+2 -2
scripts/coccicheck
··· 1 - #!/bin/bash 1 + #!/usr/bin/env bash 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # Linux kernel coccicheck 4 4 # ··· 18 18 SPATCH_VERSION=$($SPATCH --version | head -1 | awk '{print $3}') 19 19 20 20 USE_JOBS="no" 21 - $SPATCH --help | grep "\-\-jobs" > /dev/null && USE_JOBS="yes" 21 + $SPATCH --help | grep -e "--jobs" > /dev/null && USE_JOBS="yes" 22 22 23 23 # The verbosity may be set by the environmental parameter V= 24 24 # as for example with 'make V=1 coccicheck'
+4 -4
scripts/coccinelle/api/atomic_as_refcounter.cocci
··· 55 55 p1 << r1.p1; 56 56 p2 << r1.p2; 57 57 @@ 58 - msg = "atomic_dec_and_test variation before object free at line %s." 58 + msg = "WARNING: atomic_dec_and_test variation before object free at line %s." 59 59 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 60 60 61 61 @r4 exists@ ··· 88 88 p1 << r4.p1; 89 89 p2 << r4.p2; 90 90 @@ 91 - msg = "atomic_dec_and_test variation before object free at line %s." 91 + msg = "WARNING: atomic_dec_and_test variation before object free at line %s." 92 92 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 93 93 94 94 @r2 exists@ ··· 107 107 @script:python depends on report@ 108 108 p1 << r2.p1; 109 109 @@ 110 - msg = "atomic_add_unless" 110 + msg = "WARNING: atomic_add_unless" 111 111 coccilib.report.print_report(p1[0], msg) 112 112 113 113 @r3 exists@ ··· 126 126 @script:python depends on report@ 127 127 p1 << r3.p1; 128 128 @@ 129 - msg = "x = atomic_add_return(-1, ...)" 129 + msg = "WARNING: x = atomic_add_return(-1, ...)" 130 130 coccilib.report.print_report(p1[0], msg)