All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Jan Beulich <jbeulich@suse.com>,
	xen-devel@lists.xenproject.org, michal.orzel@amd.com,
	xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com,
	consulting@bugseng.com, bertrand.marquis@arm.com, julien@xen.org,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [XEN PATCH 7/7] xen/page_alloc: deviate first_valid_mfn for MISRA C Rule 8.4
Date: Wed, 06 Dec 2023 11:35:17 +0100	[thread overview]
Message-ID: <138593a577a339fd59ef175f097bcb7f@bugseng.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2312041517310.110490@ubuntu-linux-20-04-desktop>

On 2023-12-05 00:18, Stefano Stabellini wrote:
> On Mon, 4 Dec 2023, Nicola Vetrini wrote:
>> On 2023-12-04 08:44, Jan Beulich wrote:
>> > On 02.12.2023 04:03, Stefano Stabellini wrote:
>> > > On Fri, 1 Dec 2023, Jan Beulich wrote:
>> > > > On 01.12.2023 03:47, Stefano Stabellini wrote:
>> > > > > On Wed, 29 Nov 2023, Nicola Vetrini wrote:
>> > > > > > No functional change.
>> > > > > >
>> > > > > > Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
>> > > > > > ---
>> > > > > > The preferred way to deviate is to use asmlinkage, but this
>> > > > > > modification is only
>> > > > > > the consequence of NUMA on ARM (and possibly PPC) being a work in
>> > > > > > progress.
>> > > > > > As stated in the comment above the textual deviation,
>> > > > > > first_valid_mfn will
>> > > > > > likely then become static and there would be no need for the comment
>> > > > > > anymore.
>> > > > > > This works towards having the analysis for this rule clean (i.e. no
>> > > > > > violations);
>> > > > > > the interest in having a clean rule is that then it could be used to
>> > > > > > signal
>> > > > > > newly introduced violations by making the analysis job fail.
>> > > > >
>> > > > > Please add this text as part of the commit message. It can be done on
>> > > > > commit.
>> > > >
>> > > > I assume you saw my reply on another of the patches in this series as to
>> > > > asmlinkage use on variables? IOW I think this paragraph would also need
>> > > > adjustment to account for that.
>> > >
>> > > I was going to ask you about that: reading your reply
>> > > https://marc.info/?l=xen-devel&m=170142048615336 it is not clear to me
>> > > what you are asking or suggesting as next step in regard to asmlinkage
>> > > use on variables.
>> >
>> > Either we need a separate attribute, or we need affirmation that calling
>> > convention attributes are ignored (and going to be going forward) for
>> > variables, or we need to resort to SAF-* comments. I'm not sure what's
>> > best (assuming the "affirm" wouldn't really be possible).
>> >
>> 
>> Well, gcc does warn on unsupported attributes for the entity which are 
>> being
>> dropped. This appears to be the case for calling convention 
>> attributes, as
>> they are not listed in their documentation for variable attributes, 
>> but some
>> more digging would be required to determine whether that's always the 
>> case.
> 
> Given that I don't suppose we have many variables that need deviating
> (probably only 2-3 overall?) I think it is just easier to add a SAF
> comment.

I agree, but then given what Julien wrote in the thread, I'll see what I 
can do to avoid creating a new SAF entry.

-- 
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)


  reply	other threads:[~2023-12-06 10:36 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 15:24 [XEN PATCH 0/7] address some violations of MISRA C Rule 8.4 Nicola Vetrini
2023-11-29 15:24 ` [XEN PATCH 1/7] xen/arm: mmu: add headers for missing declarations Nicola Vetrini
2023-12-01  2:42   ` Stefano Stabellini
2023-11-29 15:24 ` [XEN PATCH 2/7] x86/i8259: add missing header for init_IRQ declaration Nicola Vetrini
2023-11-30 16:48   ` Jan Beulich
2023-11-30 16:58     ` Nicola Vetrini
2023-11-29 15:24 ` [XEN PATCH 3/7] xen/x86: add missing instances of asmlinkage attributes Nicola Vetrini
2023-11-30 16:44   ` Jan Beulich
2023-12-01  8:42     ` Nicola Vetrini
2023-12-01  8:47       ` Jan Beulich
2023-11-29 15:24 ` [XEN PATCH 4/7] x86/viridian: make build_assertions static Nicola Vetrini
2023-12-01  2:44   ` Stefano Stabellini
2023-11-29 15:24 ` [XEN PATCH 5/7] docs/misra: add entry to exclude-list.json Nicola Vetrini
2023-11-30  8:38   ` Jan Beulich
2023-11-29 15:24 ` [XEN PATCH 6/7] xen/x86: remove stale comment Nicola Vetrini
2023-11-30 16:41   ` Jan Beulich
2023-12-01 16:57     ` Nicola Vetrini
2023-12-04 16:26       ` Nicola Vetrini
2023-12-04 16:40         ` Jan Beulich
2023-12-04 16:50           ` Nicola Vetrini
2023-11-29 15:24 ` [XEN PATCH 7/7] xen/page_alloc: deviate first_valid_mfn for MISRA C Rule 8.4 Nicola Vetrini
2023-12-01  2:47   ` Stefano Stabellini
2023-12-01  7:06     ` Jan Beulich
2023-12-02  3:03       ` Stefano Stabellini
2023-12-02 10:10         ` Julien Grall
2023-12-04 23:19           ` Stefano Stabellini
2023-12-04  7:44         ` Jan Beulich
2023-12-04 11:56           ` Nicola Vetrini
2023-12-04 23:18             ` Stefano Stabellini
2023-12-06 10:35               ` Nicola Vetrini [this message]
2023-11-29 15:26 ` [XEN PATCH 0/7] address some violations of " Nicola Vetrini

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=138593a577a339fd59ef175f097bcb7f@bugseng.com \
    --to=nicola.vetrini@bugseng.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ayan.kumar.halder@amd.com \
    --cc=bertrand.marquis@arm.com \
    --cc=consulting@bugseng.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xenia.ragiadakou@amd.com \
    /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.