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