Skip to content

Commit aadbd07

Browse files
jbeulichjgross1
authored andcommitted
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: 934ef33 ("x86/PVH: obtain VGA console info in Dom0") Reported-by: kernel test robot <[email protected]> Signed-off-by: Jan Beulich <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 6214894 commit aadbd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/xen/enlighten_pvh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void __init xen_pvh_init(struct boot_params *boot_params)
4848
struct xen_platform_op op = {
4949
.cmd = XENPF_get_dom0_console,
5050
};
51-
long ret = HYPERVISOR_platform_op(&op);
51+
int ret = HYPERVISOR_platform_op(&op);
5252

5353
if (ret > 0)
5454
xen_init_vga(&op.u.dom0_console,

0 commit comments

Comments
 (0)