From nobody Mon Feb 9 16:12:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1599580566; cv=none; d=zohomail.com; s=zohoarc; b=lsWg8Udvp9W6ceuyPH0+CZRjvr9inr+qJ6utizjyqRs/hzBQPscRQ4G6Y5as3rmch503weifhEQPQPMxXoVwzcFhgVowcXmBh0cBQ+CXGYFwqDGePShHKmkrZdfLiB7OPt8VJWJ/IsN18a7JU8V1T4dwmsNqTBp0eqax4mojGTg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599580566; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=BaphSdiGhAZ4WeZEOB6GUUl46i+DVX/CX44TODloQyM=; b=c3eHV8+/7AXiRExadBg2bZQCcvs4ZhOC8EHVEsCrOS3Fe+a/VYNJr8pIJyP8MvrTA7+YkDbY8j0vBNCXsJ9b2iHhcL7r/ba9lTOFTnFIh0J/iqadbdu0u6ZohwVybi1xROxCrXaD6UHqyQ7E46lAAWWnZW+DSTHZJMhu8Sq9zo0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 159958056645076.98630583135264; Tue, 8 Sep 2020 08:56:06 -0700 (PDT) Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-10-YT8fFTAZMLaP9-zZYWWmmw-1; Tue, 08 Sep 2020 11:56:03 -0400 Received: by mail-wr1-f70.google.com with SMTP id v5so7058526wrs.17 for ; Tue, 08 Sep 2020 08:56:03 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id d6sm34124785wrq.67.2020.09.08.08.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 08:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599580565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BaphSdiGhAZ4WeZEOB6GUUl46i+DVX/CX44TODloQyM=; b=bHLb6xxAhFO16+jRrgj+7r7xOY+JCxBlsS+m3ePPG00QNNxbfwORIATWpwV10rtqVVb5vO KIN9qoieTdH0C1+qLElYDfZoTjuXbaWqPebc1r73t8/N5dIbrzaoOPf1ClGvDihYxcOu/1 vLoeQNPucegmOqD6xVeLCGZcbfUYHAU= X-MC-Unique: YT8fFTAZMLaP9-zZYWWmmw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BaphSdiGhAZ4WeZEOB6GUUl46i+DVX/CX44TODloQyM=; b=LhIv1R9GjcMrBTcWIoyoLMArNXexEECn3kAbcprGyGtnKVUULCykPidbpp0jVkrXhW OPNEwlZ8WKWYH7ePuKf4CS5mnaJHj/d933XRBkiqWghfQJr5lRGZE5O/jUebv6aCWXB8 A6TJ6RTbzOHfZLb3I/lRonR3xo71Rb6whkrIqScIVLg4CpA91xT3UJWIPvgW8GvxJcCt jhX2IP22V2Zmpvn7SW46gKQjfJ6zd6Ttq/EgXr6XwxiPErYNsE8andcVi+PQKl/oL3/w WNvdmh2FWIH9ekwIcy5Keayp96dQ8SaXGGERvtYqxrehBG5b86uHojpYtmQ05O/Cu5LQ 0kWA== X-Gm-Message-State: AOAM530R+eYo0vCbR1ZN5IGUe74yT3Jh1kzrVQavZP9UYkkZ52+CZiYe KDNa0PjKU6zZ2H8h6D9X0rTS+WZI4lGiL4E5jgYjtJY5HHY/uqKLQ0Og6g50ZSZ7fweiIUyY/VC 1tNm5JdqihZ746Q== X-Received: by 2002:a7b:c40b:: with SMTP id k11mr162452wmi.135.1599580562476; Tue, 08 Sep 2020 08:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyALjQfs+9IOfen4Ye454tvzuEGIBzUvWIDpuXevuX4q2Ul/ulBEnGqrdlon8zddGjC4+VrrA== X-Received: by 2002:a7b:c40b:: with SMTP id k11mr162434wmi.135.1599580562312; Tue, 08 Sep 2020 08:56:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Anthony Perard , Marcel Apfelbaum , xen-devel@lists.xenproject.org, "Michael S. Tsirkin" , Stefano Stabellini , Paolo Bonzini , Paul Durrant , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 6/6] typedefs: Restrict PCMachineState to 'hw/i386/pc.h' Date: Tue, 8 Sep 2020 17:55:30 +0200 Message-Id: <20200908155530.249806-7-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200908155530.249806-1-philmd@redhat.com> References: <20200908155530.249806-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The PCMachineState type is only used under hw/i386/. We don't need to forward-declare it for all architectures, restrict it to the X86 one. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/i386/pc.h | 4 ++-- include/qemu/typedefs.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index fe52e165b27..d4ebefcf2b4 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -19,7 +19,7 @@ * @boot_cpus: number of present VCPUs * @smp_dies: number of dies per one package */ -struct PCMachineState { +typedef struct PCMachineState { /*< private >*/ X86MachineState parent_obj; =20 @@ -50,7 +50,7 @@ struct PCMachineState { =20 /* ACPI Memory hotplug IO base address */ hwaddr memhp_io_base; -}; +} PCMachineState; =20 #define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device" #define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g" diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 427027a9707..6281eae3b55 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -90,7 +90,6 @@ typedef struct PCIExpressDevice PCIExpressDevice; typedef struct PCIExpressHost PCIExpressHost; typedef struct PCIHostDeviceAddress PCIHostDeviceAddress; typedef struct PCIHostState PCIHostState; -typedef struct PCMachineState PCMachineState; typedef struct PostcopyDiscardState PostcopyDiscardState; typedef struct Property Property; typedef struct PropertyInfo PropertyInfo; --=20 2.26.2