From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOCTa-0005o7-9X for qemu-devel@nongnu.org; Wed, 18 Feb 2015 16:48:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOCTW-0004I0-Ch for qemu-devel@nongnu.org; Wed, 18 Feb 2015 16:48:10 -0500 Received: from mail.kernel.org ([198.145.29.136]:51711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOCTW-0004Hr-7v for qemu-devel@nongnu.org; Wed, 18 Feb 2015 16:48:06 -0500 Date: Wed, 18 Feb 2015 22:48:00 +0100 From: "Michael S. Tsirkin" Message-ID: <1424295164-4774-40-git-send-email-mst@redhat.com> References: <1424295164-4774-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424295164-4774-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 39/96] virtio-rng: use standard-headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah , Peter Maydell , Thomas Huth , dgilbert@redhat.com, Juan Quintela Drop duplicated code. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- 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..7702ff4 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/linux/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