From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
"Jan Beulich" <JBeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"consulting @ bugseng . com" <consulting@bugseng.com>
Subject: Re: [PATCH RFC 5/5] x86/shadow: Deviate multi.h as being included multiple times
Date: Sat, 13 Dec 2025 08:04:54 +0100 [thread overview]
Message-ID: <ad38f82d4eb581d622cd5e76c6b352f9@bugseng.com> (raw)
In-Reply-To: <20251212222032.2640580-6-andrew.cooper3@citrix.com>
On 2025-12-12 23:20, Andrew Cooper wrote:
> This resolves the Eclair complaint about a MISRA D4.10 violation.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Roger Pau Monné <roger.pau@citrix.com>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: consulting@bugseng.com <consulting@bugseng.com>
> CC: Nicola Vetrini <nicola.vetrini@bugseng.com>
>
> RFC - this doesn't actually squash the violation, despite being the
> requisite
> magic string. I suspect the Eclair config needs tweaking to allow the
> magic
> anchor string to be after the SDPX tag.
> ---
I think it's just a matter of positioning. The location of the violation
is at line 11 (the first non-comment statement of the file, and the
string is matched in a range of -4 lines from that point:
-config=MC3A2.D4.10,reports+={safe, "first_area(text(^/\\* This file is
intended to be included multiple times\\. \\*/$, begin-4))"}
so I think moving it just below the copyright lines or increasing the
range should do the trick.
> xen/arch/x86/mm/shadow/multi.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/xen/arch/x86/mm/shadow/multi.h
> b/xen/arch/x86/mm/shadow/multi.h
> index fc86d7a8d9cd..b4a6cf1362a6 100644
> --- a/xen/arch/x86/mm/shadow/multi.h
> +++ b/xen/arch/x86/mm/shadow/multi.h
> @@ -2,6 +2,8 @@
>
> /******************************************************************************
> * arch/x86/mm/shadow/multi.h
> *
> + * This file is intended to be included multiple times.
> + *
> * Shadow declarations which will be multiply compiled.
> * Parts of this code are Copyright (c) 2006 by XenSource Inc.
> * Parts of this code are Copyright (c) 2006 by Michael A Fetterman
--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
next prev parent reply other threads:[~2025-12-13 7:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-12 22:20 [PATCH 0/5] x86: More misc MISRA fixes Andrew Cooper
2025-12-12 22:20 ` [PATCH 1/5] x86/pv: Address MISRA C:2012 Rule 4.1 Andrew Cooper
2025-12-13 6:52 ` Nicola Vetrini
2025-12-12 22:20 ` [PATCH 2/5] x86/pv: Change type of do_update_descriptor()'s desc parameter Andrew Cooper
2025-12-12 22:20 ` [PATCH 3/5] x86: Address MIRSA R8.3 (declaration/definition mismatch) issues Andrew Cooper
2025-12-13 6:58 ` Nicola Vetrini
2025-12-12 22:20 ` [PATCH 4/5] x86: Address MIRSA R8.4 (declaration visibility) issues Andrew Cooper
2025-12-12 22:20 ` [PATCH RFC 5/5] x86/shadow: Deviate multi.h as being included multiple times Andrew Cooper
2025-12-13 7:04 ` Nicola Vetrini [this message]
2025-12-15 10:15 ` [PATCH 0/5] x86: More misc MISRA fixes Jan Beulich
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=ad38f82d4eb581d622cd5e76c6b352f9@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=consulting@bugseng.com \
--cc=roger.pau@citrix.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.