* [PATCH] x86/PV: make mmio_ro_emulated_write() static
@ 2025-06-04 9:22 Jan Beulich
2025-06-04 9:27 ` Roger Pau Monné
0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2025-06-04 9:22 UTC (permalink / raw)
To: xen-devel@lists.xenproject.org; +Cc: Andrew Cooper, Roger Pau Monné
It being non-static and it not having a declaration (anymore) violates
one or more Misra rules, iirc.
Fixes: ff3e5dfa7c2d ("x86/mm: move mmio_ro_emulated_write() to PV only file")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/arch/x86/pv/ro-page-fault.c
+++ b/xen/arch/x86/pv/ro-page-fault.c
@@ -337,7 +337,7 @@ static int cf_check mmcfg_intercept_writ
return X86EMUL_OKAY;
}
-int cf_check mmio_ro_emulated_write(
+static int cf_check mmio_ro_emulated_write(
enum x86_segment seg,
unsigned long offset,
void *p_data,
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] x86/PV: make mmio_ro_emulated_write() static
2025-06-04 9:22 [PATCH] x86/PV: make mmio_ro_emulated_write() static Jan Beulich
@ 2025-06-04 9:27 ` Roger Pau Monné
2025-06-04 9:58 ` Nicola Vetrini
0 siblings, 1 reply; 3+ messages in thread
From: Roger Pau Monné @ 2025-06-04 9:27 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel@lists.xenproject.org, Andrew Cooper
On Wed, Jun 04, 2025 at 11:22:00AM +0200, Jan Beulich wrote:
> It being non-static and it not having a declaration (anymore) violates
> one or more Misra rules, iirc.
>
> Fixes: ff3e5dfa7c2d ("x86/mm: move mmio_ro_emulated_write() to PV only file")
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
We are not checking for those rules in Eclair I think? Otherwise this
won't have passed the CI testing. Or maybe we are just checking
builds with !CONFIG_PV?
Thanks, Roger.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] x86/PV: make mmio_ro_emulated_write() static
2025-06-04 9:27 ` Roger Pau Monné
@ 2025-06-04 9:58 ` Nicola Vetrini
0 siblings, 0 replies; 3+ messages in thread
From: Nicola Vetrini @ 2025-06-04 9:58 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: Jan Beulich, xen-devel, Andrew Cooper
On 2025-06-04 11:27, Roger Pau Monné wrote:
> On Wed, Jun 04, 2025 at 11:22:00AM +0200, Jan Beulich wrote:
>> It being non-static and it not having a declaration (anymore) violates
>> one or more Misra rules, iirc.
>>
>> Fixes: ff3e5dfa7c2d ("x86/mm: move mmio_ro_emulated_write() to PV only
>> file")
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
>
> We are not checking for those rules in Eclair I think? Otherwise this
> won't have passed the CI testing. Or maybe we are just checking
> builds with !CONFIG_PV?
>
> Thanks, Roger.
That seems to be the case on x86. On Arm64 there is no override for
CONFIG_PV [1], but perhaps that is unset by default? I'm not opposed to
having more variants under analysis, but that is not something I can
decide on individually.
Thanks,
Nicola
[1]
https://gitlab.com/xen-project/hardware/xen/-/blob/staging/automation/gitlab-ci/analyze.yaml?ref_type=heads
--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-04 9:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04 9:22 [PATCH] x86/PV: make mmio_ro_emulated_write() static Jan Beulich
2025-06-04 9:27 ` Roger Pau Monné
2025-06-04 9:58 ` Nicola Vetrini
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.