From: Nicola Vetrini Date: Mon, 27 May 2024 14:53:17 +0000 (+0200) Subject: automation/eclair_analysis: avoid an ECLAIR warning about escaping X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=96af090e33130b0bf0953f3ccab8e7a163392318;p=people%2Faperard%2Fxen-unstable.git automation/eclair_analysis: avoid an ECLAIR warning about escaping The parentheses in this regular expression should be doubly escaped because they undergo expansion twice. Signed-off-by: Nicola Vetrini [stefano: fix commit message] Signed-off-by: Stefano Stabellini Acked-by: Stefano Stabellini --- diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/eclair_analysis/ECLAIR/deviations.ecl index b9b377c56b..cf62a874d9 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -405,8 +405,8 @@ explicit comment indicating the fallthrough intention is present." # -doc_begin="printf()-like functions are allowed to use the variadic features provided by stdarg.h." --config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printk\(.*\)$)))"} --config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printf\(.*\)$)))"} +-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printk\\(.*\\)$)))"} +-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printf\\(.*\\)$)))"} -config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(panic)&&kind(function))))"} -config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(elf_call_log_callback)&&kind(function))))"} -config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(vprintk_common)&&kind(function))))"}