[PATCH] patches: Add workaround for coccinelle regex
Hauke Mehrtens <[email protected]> Wed, 3 Apr 2024 01:20:56 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
The old regex condition for the identifer is not working when running in Ubuntu 24.04. It was working fine in Ubuntu 22.04. Both are using coccinelle 1.1.1. See this Bug report: https://github.com/coccinelle/coccinelle/issues/364 Signed-off-by: Hauke Mehrtens <[email protected]> --- patches/0087-led-activate.cocci | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/0087-led-activate.cocci b/patches/0087-led-activate.cocci index 674db046..f0186a90 100644 --- a/patches/0087-led-activate.cocci +++ b/patches/0087-led-activate.cocci @@ -1,6 +1,7 @@ @act@ identifier activate_fn, p; -identifier m =~ "rx_led|tx_led|assoc_led|radio_led|tpt_led"; +/* the check for "rx_led|tx_led|assoc_led|radio_led|tpt_led" does not work with coccinelle in Ubuntu 24.04 */ +identifier m =~ ".*_led"; fresh identifier activate_fn_wrap = "bp_" ## activate_fn; @@ <+... -- 2.44.0