[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86/PVH: avoid 32-bit build warning when obtaining VGA console info
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 21 Mar 2023 09:03:26 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=koRo8zcUEQZe8q+4HcGJaqbTevf8UXXSvHLf3tkcOw8=; b=fu4+Hru9KqBo5HSC1vUoorlwF9OwoOshWQZyQvPpLcoiNHKMJ1RMcIIV0yd3T/2Re3VNJEiLUO0/ocgujR1ZP0sbIVC9D+3PITsiWSvr3zWVoXlZJ4FybAF2lcCqcZJeSCThHPzhShCj7lYUalLhKWauCfuhGJbrzijh1AruzKUmSi9Y5SrrNsO+3WJrZa1mtdzmR6UKo4PbYJ3oy1ZxEfZLiaDxakFK2k2gdq5pToHAlmyJnTHy8NmbH6Ar3bGUAySlZO7BjelFLbZkcs862PKnoDL0XXISCWkqyNISTbSNa1hvX7neToerWzFOZPU2p3m5ImbFvVzs9BPsQSVCGw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VYyIf9rywEStpQAfDz+JReRR23sd/fbD6t1nEtTtTpHJI/guLZq15pab4XdJle4/nybb4fMF4fActAq2H3Wo+zZHB4M1so7DF86ZNm6vm4VPAz0P6MfS7Z0ef6soP7bor6NwQir+ThYGJNx/UeXPgAB75H1RcRlKZMoJW8u5GS4RFjDlrFlBxyd69+SzfSt3ghM6WLpEibZDqK8B/3hn+PeZ+tVhcxWbcNzwvJI4S9mwgOkO6rRIXbUxNOiUkpLHwJG9MXTTEjUSjJQ3pdcNY6WPREtQ7er3rY4Vzv1ucop0TGpSsM9I7bYu+V415///smjZyVLHpVITw5dRh+dYbA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Juergen Gross <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
- Delivery-date: Tue, 21 Mar 2023 08:03:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- a/arch/x86/xen/enlighten_pvh.c
+++ b/arch/x86/xen/enlighten_pvh.c
@@ -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,
|