[PATCH] patches: Add workaround for coccinelle regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux