From nobody Mon Feb 9 09:29:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1565587632; cv=none; d=zoho.com; s=zohoarc; b=ElHPHauc4T4Yxsms4QtLZmzHzLPGWA/TzvtWbk+pVvKlY5ril84pD42xF+oGUWJt6s1XdVFMVPcUaHg2joRHJ9+c9f6XVDC3PgXARFFT8HnKbTYALh7GjCQDIpzkNpHGJbT6Xue++LFjETiQZzo+N0vXA44DiEuy6R6en9oIUcI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565587632; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Gwo1dV+XvLLxM5Oyj0EZOPErCopw5VlSEoRv5Zb2q0Q=; b=Ij/TItnU6HnTPM8kO+ZISh5EFN34LghTbgJ90PEe7vD+ae4AEja1xjVgrCno3yslOsE/snyhpBxMEBoQyI3R4sGfpJcLTaKofuI5DJkgSjzcVcEjJTc1vCIuD5vpaSQ+8Tpe3nT9OVT/q6tzar53qOa02QcIZCtiOEC5jLUkF5s= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565587632911374.859471963141; Sun, 11 Aug 2019 22:27:12 -0700 (PDT) Received: from localhost ([::1]:42980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx2rQ-00008b-1k for importer@patchew.org; Mon, 12 Aug 2019 01:27:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57229) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx2oY-0000Lt-Rt for qemu-devel@nongnu.org; Mon, 12 Aug 2019 01:24:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hx2oW-0006CX-4k for qemu-devel@nongnu.org; Mon, 12 Aug 2019 01:24:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48964) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hx2oV-0006An-Rd for qemu-devel@nongnu.org; Mon, 12 Aug 2019 01:24:12 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1087330622E4 for ; Mon, 12 Aug 2019 05:24:11 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-117-142.ams2.redhat.com [10.36.117.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D16776FDA0; Mon, 12 Aug 2019 05:24:10 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 22E651136430; Mon, 12 Aug 2019 07:24:00 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Mon, 12 Aug 2019 07:23:54 +0200 Message-Id: <20190812052359.30071-25-armbru@redhat.com> In-Reply-To: <20190812052359.30071-1-armbru@redhat.com> References: <20190812052359.30071-1-armbru@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 12 Aug 2019 05:24:11 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v4 24/29] Include sysemu/hostmem.h less X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mammedov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eduardo Habkost Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Move the HostMemoryBackend typedef from sysemu/hostmem.h to qemu/typedefs.h. This renders a few inclusions of sysemu/hostmem.h superfluous; drop them. Cc: Eduardo Habkost Cc: Igor Mammedov Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Eduardo Habkost Reviewed-by: Igor Mammedov Tested-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/mem/pc-dimm.h | 1 - include/hw/virtio/virtio-pmem.h | 1 - include/qemu/typedefs.h | 1 + include/sysemu/hostmem.h | 1 - hw/mem/nvdimm.c | 1 + hw/virtio/virtio-pmem.c | 1 + 6 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h index 47b246f95c..289edc0f3d 100644 --- a/include/hw/mem/pc-dimm.h +++ b/include/hw/mem/pc-dimm.h @@ -17,7 +17,6 @@ #define QEMU_PC_DIMM_H =20 #include "exec/memory.h" -#include "sysemu/hostmem.h" #include "hw/qdev-core.h" =20 #define TYPE_PC_DIMM "pc-dimm" diff --git a/include/hw/virtio/virtio-pmem.h b/include/hw/virtio/virtio-pme= m.h index 8bf2ae780f..33f1999320 100644 --- a/include/hw/virtio/virtio-pmem.h +++ b/include/hw/virtio/virtio-pmem.h @@ -16,7 +16,6 @@ =20 #include "hw/virtio/virtio.h" #include "qapi/qapi-types-misc.h" -#include "sysemu/hostmem.h" =20 #define TYPE_VIRTIO_PMEM "virtio-pmem" =20 diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 9e1283aacf..f569f5f270 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -33,6 +33,7 @@ typedef struct FWCfgEntry FWCfgEntry; typedef struct FWCfgIoState FWCfgIoState; typedef struct FWCfgMemState FWCfgMemState; typedef struct FWCfgState FWCfgState; +typedef struct HostMemoryBackend HostMemoryBackend; typedef struct HVFX86EmulatorState HVFX86EmulatorState; typedef struct I2CBus I2CBus; typedef struct I2SCodec I2SCodec; diff --git a/include/sysemu/hostmem.h b/include/sysemu/hostmem.h index 92fa0e458c..afeb5db1b1 100644 --- a/include/sysemu/hostmem.h +++ b/include/sysemu/hostmem.h @@ -27,7 +27,6 @@ #define MEMORY_BACKEND_CLASS(klass) \ OBJECT_CLASS_CHECK(HostMemoryBackendClass, (klass), TYPE_MEMORY_BACKEN= D) =20 -typedef struct HostMemoryBackend HostMemoryBackend; typedef struct HostMemoryBackendClass HostMemoryBackendClass; =20 /** diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index 6fefd65092..375f9a588a 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -30,6 +30,7 @@ #include "hw/mem/nvdimm.h" #include "hw/qdev-properties.h" #include "hw/mem/memory-device.h" +#include "sysemu/hostmem.h" =20 static void nvdimm_get_label_size(Object *obj, Visitor *v, const char *nam= e, void *opaque, Error **errp) diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c index ff1a2ddb36..c0c9395e55 100644 --- a/hw/virtio/virtio-pmem.c +++ b/hw/virtio/virtio-pmem.c @@ -21,6 +21,7 @@ #include "hw/virtio/virtio-access.h" #include "standard-headers/linux/virtio_ids.h" #include "standard-headers/linux/virtio_pmem.h" +#include "sysemu/hostmem.h" #include "block/aio.h" #include "block/thread-pool.h" =20 --=20 2.21.0