Skip to contentSkip to conversation

x86/PVH: avoid 32-bit build warning when obtaining VGA console info

PATCH In review Jan Beulich 2 participants 2 messages Mar 21, 2023 – Mar 22, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/PVH: avoid 32-bit build warning when obtaining VGA console info

In the commit referenced below I failed to pay attention to this code also being buildable as 32-bit. Adjust the type of "ret" - there's no real need for it to be wider than 32 bits.

Fixes 934ef33ee75c ("x86/PVH: obtain VGA console info in Dom0")
arch/x86/xen/enlighten_pvh.c +1 -1
@@ -48,7 +48,7 @@ void __init xen_pvh_init(struct boot_par
 		struct xen_platform_op op = {
 			.cmd = XENPF_get_dom0_console,
 		};
-		long ret = HYPERVISOR_platform_op(&op);
+		int ret = HYPERVISOR_platform_op(&op);
 
 		if (ret > 0)
 			xen_init_vga(&op.u.dom0_console,
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

In the commit referenced below I failed to pay attention to this code also being buildable as 32-bit. Adjust the type of "ret" - there's no real need for it to be wider than 32 bits.

Fixes 934ef33ee75c ("x86/PVH: obtain VGA console info in Dom0")

Juergen