x86/PVH: mark pvh_setup_mmcfg() __init
PATCH 1/1 x86/PVH: mark pvh_setup_mmcfg() __init
Its sole caller is, and the wrong annotation would cause a build failure (non-empty .text) if the compiler chose to not inline the function when at the same time LATE_HWDOM=y.
Fixes be52cb139f57a ("x86/mmcfg: add handlers for the PVH Dom0 MMCFG areas")
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/hvm/dom0_build.c +1 -1
@@ -1310,7 +1310,7 @@ static int __init pvh_setup_acpi(structreturn 0 ; } -static void __hwdom_init pvh_setup_mmcfg(struct domain *d) +static void __init pvh_setup_mmcfg (struct domain *d) {unsigned int i;int rc;
Quoted 6 lines · Jan Beulich
Its sole caller is, and the wrong annotation would cause a build failure (non-empty .text) if the compiler chose to not inline the function when at the same time LATE_HWDOM=y.
Fixes be52cb139f57a ("x86/mmcfg: add handlers for the PVH Dom0 MMCFG areas")Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Roger Pau Monné <[email protected]>
That was my oversight, sorry.
Thanks, Roger.