x86/PV: make mmio_ro_emulated_write() static
PATCH 1/1 x86/PV: make mmio_ro_emulated_write() static
It being non-static and it not having a declaration (anymore) violates one or more Misra rules, iirc.
xen/arch/x86/pv/ro-page-fault.c +1 -1
@@ -337,7 +337,7 @@ static int cf_check mmcfg_intercept_writreturn 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,
Quoted 5 lines · Jan Beulich
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 <[email protected]>
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.
Quoted 7 lines · Roger Pau Monné
Quoted 5 lines · Jan Beulich
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 <[email protected]>
Quoted 7 lines
Acked-by Roger Pau Monné <[email protected]>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
Signature · 4 lines
Nicola Vetrini, B.Sc. Software Engineer BUGSENG (https://bugseng.com) LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253