Skip to contentSkip to conversation

x86/PVH: mark pvh_setup_mmcfg() __init

PATCH In review Jan Beulich 2 participants 2 messages Jan 8

lore
Share & tools
lore
#0 lore raw

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")
xen/arch/x86/hvm/dom0_build.c +1 -1
@@ -1310,7 +1310,7 @@ static int __init pvh_setup_acpi(struct
     return 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;
Reviewed-by on v1 1/1
#1 lore raw
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")

That was my oversight, sorry.

Thanks, Roger.