From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: xen-devel@lists.xenproject.org
Cc: sstabellini@kernel.org, consulting@bugseng.com,
dmytro_prokopchuk1@epam.com, andrew.cooper3@citrix.com,
jbeulich@suse.com, Doug Goldstein <cardoe@cardoe.com>
Subject: Re: [XEN PATCH 1/2] automation/eclair: ECLAIR configuration changes due to GitLab runner update
Date: Fri, 08 Aug 2025 23:48:11 +0200 [thread overview]
Message-ID: <7dfa016caddc615b7bbbef3781dd23a4@bugseng.com> (raw)
In-Reply-To: <1283be3b76d76814af244bbca544f6a3b74a04de.1754689062.git.nicola.vetrini@bugseng.com>
On 2025-08-08 23:40, Nicola Vetrini wrote:
> Update configurations to adapt to the new syntax used by the newer
> version of the tool in the GitLab runner.
>
Sorry, forgot to include the cover letter. See below.
From c4da2554d94c3f7bd4b1e460dcaa27db382ece2f Mon Sep 17 00:00:00 2001
Message-ID: <cover.1754689388.git.nicola.vetrini@bugseng.com>
From: Nicola Vetrini <nicola.vetrini@bugseng.com>
Date: Fri, 8 Aug 2025 23:43:08 +0200
Subject: [XEN PATCH 0/2] Update ECLAIR runner and address MISRA
violations
The first patch of the series contains the necessary updates to the
ECLAIR syntax needed to run the updated runners. The change was
motivated by usage of the new syntax in a deviation that is part of the
second patch.
As a result, the runners should be updated either just before or just
after committing the patches.
These have not been properly tested yet on an ECLAIR analysis of Xen,
but
I sent the patches to get some feedback first and then coordinate with
maintainers to take the needed action once agreed on the approach.
Nicola Vetrini (2):
automation/eclair: ECLAIR configuration changes due to GitLab runner
update
Address violation of MISRA C Rule 13.1 involving asm side effects.
automation/eclair_analysis/ECLAIR/deviations.ecl | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
--
2.43.0
> No functional changes.
>
> Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
> ---
> This will of course need coordination with me to update the runners
> just before committing the patches, as any analysis done in between
> will
> fail due to syntax errors in the tool configuration files.
> ---
> automation/eclair_analysis/ECLAIR/deviations.ecl | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl
> b/automation/eclair_analysis/ECLAIR/deviations.ecl
> index ebce1ceab912..ec0cac797e5f 100644
> --- a/automation/eclair_analysis/ECLAIR/deviations.ecl
> +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl
> @@ -536,8 +536,8 @@ safe."
> -config=MC3A2.R16.3,reports+={safe,
> "any_area(end_loc(any_exp(text(^(?s).*/\\* [fF]all ?through\\.?
> \\*/.*$,0..2))))"}
> -doc_end
>
> --doc_begin="Switch statements having a controlling expression of enum
> type deliberately do not have a default case: gcc -Wall enables
> -Wswitch which warns (and breaks the build as we use -Werror) if one of
> the enum labels is missing from the switch."
> --config=MC3A2.R16.4,reports+={deliberate,'any_area(kind(context)&&^.*
> has no
> `default.*$&&stmt(node(switch_stmt)&&child(cond,skip(__non_syntactic_paren_stmts,type(canonical(enum_underlying_type(any())))))))'}
> +-doc_begin="Switch statements having a controlling expression of enum
> type deliberately do not have a default case: gcc -Wall enables
> -Wswitch which warns (and breaks the build as -Werror is used) if one
> of the enumeration values is missing from the switch."
> +-config=MC3A2.R16.4,reports+={deliberate,"any_area(kind(context)&&^.*
> has no
> `default.*$&&stmt(node(switch_stmt)&&child(cond,skip(__non_syntactic_paren_stmts,ref(enum_underlying_type(any()))))))"}
> -doc_end
>
> -doc_begin="A switch statement with a single switch clause and no
> default label may be used in place of an equivalent if statement if it
> is considered to improve readability."
> @@ -596,10 +596,10 @@ in assignments; (5) as initializers, possibly
> designated, in initalizer lists;
> -config=MC3A2.R20.7,expansion_context=
> {safe, "context(__call_expr_arg_contexts)"},
> {safe, "left_right(^[(,\\[]$,^[),\\]]$)"},
> -{safe, "context(skip_to(__expr_non_syntactic_contexts,
> stmt_child(node(array_subscript_expr), subscript)))"},
> -{safe, "context(skip_to(__expr_non_syntactic_contexts,
> stmt_child(operator(assign), lhs)))"},
> -{safe, "context(skip_to(__expr_non_syntactic_contexts,
> stmt_child(node(init_list_expr||designated_init_expr), init)))"},
> -{safe, "context(skip_to(__expr_non_syntactic_contexts,
> stmt_child(node(case_stmt), lower||upper)))"}
> +{safe, "context(skip(__expr_non_syntactic_contexts,
> is(subscript)&&node(array_subscript_expr)))"},
> +{safe, "context(skip(__expr_non_syntactic_contexts,
> is(lhs)&&stmt(operator(assign))))"},
> +{safe, "context(skip(__expr_non_syntactic_contexts,
> is(init)&&node(init_list_expr||designated_init_expr)))"},
> +{safe, "context(skip(__expr_non_syntactic_contexts,
> is(lower||upper)&&node(case_stmt)))"}
> -doc_end
>
> -doc_begin="Violations involving the __config_enabled macros cannot be
> fixed without
--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
prev parent reply other threads:[~2025-08-08 21:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 21:40 [XEN PATCH 1/2] automation/eclair: ECLAIR configuration changes due to GitLab runner update Nicola Vetrini
2025-08-08 21:40 ` [XEN PATCH 2/2] Address violation of MISRA C Rule 13.1 involving asm side effects Nicola Vetrini
2025-08-13 7:41 ` Dmytro Prokopchuk1
2025-08-13 7:46 ` Nicola Vetrini
2025-08-14 7:36 ` Jan Beulich
2025-08-14 17:49 ` Nicola Vetrini
2025-08-15 19:51 ` Stefano Stabellini
2025-08-08 21:43 ` [XEN PATCH 1/2] automation/eclair: ECLAIR configuration changes due to GitLab runner update Andrew Cooper
2025-08-08 21:48 ` Nicola Vetrini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7dfa016caddc615b7bbbef3781dd23a4@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=consulting@bugseng.com \
--cc=dmytro_prokopchuk1@epam.com \
--cc=jbeulich@suse.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.