From 46223e9568b32a876f4b4432adec3d21f44f0924 Mon Sep 17 00:00:00 2001 Message-Id: <46223e9568b32a876f4b4432adec3d21f44f0924.1387298827.git.minovotn@redhat.com> In-Reply-To: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com> References: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com> From: "Michael S. Tsirkin" Date: Tue, 17 Dec 2013 15:16:52 +0100 Subject: [PATCH 02/56] range: add Range to typedefs RH-Author: Michael S. Tsirkin Message-id: <1387293161-4085-3-git-send-email-mst@redhat.com> Patchwork-id: 56307 O-Subject: [PATCH qemu-kvm RHEL7.0 v2 02/57] range: add Range to typedefs Bugzilla: 1034876 RH-Acked-by: Igor Mammedov RH-Acked-by: Marcel Apfelbaum RH-Acked-by: Laszlo Ersek will help simplify header dependencies. Signed-off-by: Michael S. Tsirkin (cherry picked from commit cfe25e2bcada943984e27ee63918fd75dc4563ac) --- include/qemu/range.h | 2 +- include/qemu/typedefs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) Signed-off-by: Michal Novotny --- include/qemu/range.h | 2 +- include/qemu/typedefs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/qemu/range.h b/include/qemu/range.h index b76cc0d..4a0780d 100644 --- a/include/qemu/range.h +++ b/include/qemu/range.h @@ -2,6 +2,7 @@ #define QEMU_RANGE_H #include +#include /* * Operations on 64 bit address ranges. @@ -15,7 +16,6 @@ struct Range { uint64_t begin; /* First byte of the range, or 0 if empty. */ uint64_t end; /* 1 + the last byte. 0 if range empty or ends at ~0x0LL. */ }; -typedef struct Range Range; /* Get last byte of a range from offset + length. * Undefined for ranges that wrap around 0. */ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 1218a61..2e7d942 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -63,5 +63,6 @@ typedef struct EventNotifier EventNotifier; typedef struct VirtIODevice VirtIODevice; typedef struct QEMUSGList QEMUSGList; typedef struct SHPCDevice SHPCDevice; +typedef struct Range Range; #endif /* QEMU_TYPEDEFS_H */ -- 1.7.11.7