From nobody Mon May 6 03:26:04 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579623546; cv=none; d=zohomail.com; s=zohoarc; b=EVUiUryy1TrMiAzGkWkInMHbB3VpTnpZZdL6UzW/kbpS/xG67/rovo/Px8eCm1EhAgF6rziQHZm4EIlZteFE2Eq97pSZvG3j6se22hCXh04FsccLc48bhwENhRBf8QPbQ6bgij1SMibB5zagJqMaGsejxglPMLbEXwORneSLbW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579623546; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=d0XR0jCVwtwhiX3Sog7R9B3OlAGllMYxPYocmtqhcHw=; b=gSyBti+2ioMXibQNN+Q/Z1GaQ3u3tz8ry0V40/VFn1MK8xW+vz5T/BONjIGsTr9wjc7898k7aNvrM/fZpumVY3bYg6GJH3jGmApnbXTf6UB06JxLWE5k8B9BDeJesU/SNmE/hMMBa1S01SC7zrc4y8M99LN0KQHWp3OoTVRxjI8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1579623546002932.7842087793495; Tue, 21 Jan 2020 08:19:06 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1itwEB-0004Gp-7l; Tue, 21 Jan 2020 16:18:07 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1itwE9-0004Gi-CS for xen-devel@lists.xenproject.org; Tue, 21 Jan 2020 16:18:05 +0000 Received: from us-smtp-1.mimecast.com (unknown [207.211.31.120]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 957de660-3c69-11ea-9fd7-bc764e2007e4; Tue, 21 Jan 2020 16:17:56 +0000 (UTC) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-383-oGkG9ygMPtaS4BNVSu56XQ-1; Tue, 21 Jan 2020 11:17:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5FFCA10883A0; Tue, 21 Jan 2020 16:17:52 +0000 (UTC) Received: from thuth.com (unknown [10.36.118.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9ADEC60FC4; Tue, 21 Jan 2020 16:17:50 +0000 (UTC) X-Inumbo-ID: 957de660-3c69-11ea-9fd7-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579623476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a3Ux0PVxC8InXew79I80ST6+H9hTQVTilwJku2Xro48=; b=cd2OuRaY9BOn3+TRPPk5s3EZ5uR2of69vYgKhxF2zVI8nHB7nbWcOmSsnpBiaR7qxUYZu6 6XuFetf9X68jqmF/xHulDyL95RvZCvOgB0vHKtp6B9jPO9lxEs5w8KLyS1+4r+dDMuu0Bz pLR4ruayLYArALQ5TfASmWCGQxYLAhY= From: Thomas Huth To: qemu-devel@nongnu.org, Stefano Stabellini , Anthony Perard , Paul Durrant Date: Tue, 21 Jan 2020 17:17:47 +0100 Message-Id: <20200121161747.10569-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: oGkG9ygMPtaS4BNVSu56XQ-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [Xen-devel] [Qemu-devel] [PATCH] trivial: Remove xenfb_enabled from sysemu.h X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, xen-devel@lists.xenproject.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The define is only used in one other place. Move the code there instead of keeping this xen-specific define in sysemu.h. Signed-off-by: Thomas Huth Acked-by: Paul Durrant Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/xenpv/xen_machine_pv.c | 2 +- include/sysemu/sysemu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/xenpv/xen_machine_pv.c b/hw/xenpv/xen_machine_pv.c index 3a8af1a1e0..8df575a457 100644 --- a/hw/xenpv/xen_machine_pv.c +++ b/hw/xenpv/xen_machine_pv.c @@ -60,7 +60,7 @@ static void xen_init_pv(MachineState *machine) xen_be_register("qnic", &xen_netdev_ops); =20 /* configure framebuffer */ - if (xenfb_enabled) { + if (vga_interface_type =3D=3D VGA_XENFB) { xen_config_dev_vfb(0, "vnc"); xen_config_dev_vkbd(0); } diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 80c57fdc4e..2ccf216158 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -32,7 +32,6 @@ typedef enum { } VGAInterfaceType; =20 extern int vga_interface_type; -#define xenfb_enabled (vga_interface_type =3D=3D VGA_XENFB) =20 extern int graphic_width; extern int graphic_height; --=20 2.18.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel