All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: sstabellini@kernel.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>,
	"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
	xen-devel@lists.xenproject.org
Subject: Re: [XEN PATCH 6/7] xen/x86: remove stale comment
Date: Mon, 04 Dec 2023 17:50:19 +0100	[thread overview]
Message-ID: <f20ee3bf483c040c82ba5540a2102953@bugseng.com> (raw)
In-Reply-To: <fa2971c0-10fc-48b8-9031-53e56ae08319@suse.com>

On 2023-12-04 17:40, Jan Beulich wrote:
> On 04.12.2023 17:26, Nicola Vetrini wrote:
>> On 2023-12-01 17:57, Nicola Vetrini wrote:
>>> On 2023-11-30 17:41, Jan Beulich wrote:
>>>> On 29.11.2023 16:24, Nicola Vetrini wrote:
>>>>> The comment referred to the declaration for do_mca, which
>>>>> now is part of hypercall-defs.h, therefore the comment is stale.
>>>> 
>>>> If the comments were stale, the #include-s should also be able to
>>>> disappear?
>> 
>>>>> --- a/xen/arch/x86/include/asm/hypercall.h
>>>>> +++ b/xen/arch/x86/include/asm/hypercall.h
>>>>> @@ -12,7 +12,7 @@
>>>>>  #include <xen/types.h>
>>>>>  #include <public/physdev.h>
>>>>>  #include <public/event_channel.h>
>>>>> -#include <public/arch-x86/xen-mca.h> /* for do_mca */
>>>>> +#include <public/arch-x86/xen-mca.h>
>>>>>  #include <asm/paging.h>
>>>> 
>>>> Here otoh I'm not even sure this public header (or the others) is
>>>> (are)
>>>> really needed.
>>>> 
>>> 
>>> I confirm this. It build even without this header.
>> 
>> It does appear to be needed after all. I did two differential pipeline
>> runs, and some jobs fail to compile when I remove the header (e.g.,
>> [1]). Looking trough the build log, it's not entirely clear what is 
>> the
>> relationship, but it seems related to some use of this struct defined 
>> in
>> xen-mca.h:
>> 
>> typedef struct xen_mc xen_mc_t;
>> DEFINE_XEN_GUEST_HANDLE(xen_mc_t);
> 
> That do_mca()'s parameter type, so in a way the comment is still 
> correct
> then.
> 
> Jan

Yeah, this patch can be dropped.

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


  reply	other threads:[~2023-12-04 16:50 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 [this message]
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
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=f20ee3bf483c040c82ba5540a2102953@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=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.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.