diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-26 07:50:38 +0300 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-14 17:19:04 +0300 |
commit | e0be348e4d6ebd660c9558bcee50f648491cfef6 (patch) | |
tree | 4ea88f1ce00fffe032cd47bdbf0ebc6b98696fd0 /sound/last.c | |
parent | 9ed07ada0e1476a676450056a20226b88076025e (diff) | |
download | linux-e0be348e4d6ebd660c9558bcee50f648491cfef6.tar.xz |
coccinelle: grep Options and Requires fields more precisely
Currently, the required version for badzero.cocci is picked up from
its "Comments:" line since it contains the word "Requires".
Surprisingly, ld-version.sh can extract the version number from the
string "Requires Coccinelle version 1.0.0-rc20 or later", but this
expectation is fragile. Fix the .cocci file. I removed "-rc20"
because ld-version.sh cannot handle it.
Make the coccicheck script to see exact patterns for "Options:" and
"Requires:" in order to avoid accidental matching to what just happens
to appear in comment lines.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Nicolas Palix <nicolas.palix@imag.fr>
Diffstat (limited to 'sound/last.c')
0 files changed, 0 insertions, 0 deletions