diff mbox series

patches: Add workaround for coccinelle regex

Message ID 20240402232056.2766461-1-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series patches: Add workaround for coccinelle regex | expand

Commit Message

Hauke Mehrtens April 2, 2024, 11:20 p.m. UTC
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 <hauke@hauke-m.de>
---
 patches/0087-led-activate.cocci | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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;
 @@
 <+...