Received: from eggs.gnu.org ([2001:4830:134:3::10]:40995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMxXj-0005Mr-PM for qemu-devel@nongnu.org; Sun, 15 Feb 2015 06:39:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMxXd-0007uH-Go for qemu-devel@nongnu.org; Sun, 15 Feb 2015 06:39:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMxXd-0007u5-9O for qemu-devel@nongnu.org; Sun, 15 Feb 2015 06:39:13 -0500 Date: Sun, 15 Feb 2015 12:39:04 +0100 From: "Michael S. Tsirkin" Message-ID: <1423999136-17320-10-git-send-email-mst@redhat.com> References: <1423999136-17320-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423999136-17320-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH v2 09/17] virtio-rng: use standard-headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Alexander Graf , Amit Shah , Stefan Hajnoczi , Cornelia Huck , "Chen, Tiejun" Drop duplicated code. Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio-rng.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 14e85a5..b352733 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -14,6 +14,7 @@ #include "sysemu/rng.h" #include "sysemu/rng-random.h" +#include "standard-headers/sys/virtio_rng.h" #define TYPE_VIRTIO_RNG "virtio-rng-device" #define VIRTIO_RNG(obj) \ @@ -21,9 +22,6 @@ #define VIRTIO_RNG_GET_PARENT_CLASS(obj) \ OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_RNG) -/* The Virtio ID for the virtio rng device */ -#define VIRTIO_ID_RNG 4 - struct VirtIORNGConf { RngBackend *rng; uint64_t max_bytes; -- MST