aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2024-04-03 01:14:49 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2024-04-09 23:20:16 +0200
commit86edcededaa4ca411c331c0d248e444d2e6a2adf (patch)
treeb74ba5190814e19fa13711b47f5eefb4e193f8e3
parent5d1e8c6175d76e6ee06b36acf62b8b7b12464c22 (diff)
downloadbackports-86edcededaa4ca411c331c0d248e444d2e6a2adf.tar.gz
patches: Add workaround for coccinelle regex
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>
-rw-r--r--patches/0087-led-activate.cocci3
1 files changed, 2 insertions, 1 deletions
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;
@@
<+...