From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNTL9-0006Mz-9a for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNTL3-0004qu-ME for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:36:27 -0500 Received: from mail.kernel.org ([198.145.29.136]:48109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNTL3-0004qj-HM for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:36:21 -0500 Date: Mon, 16 Feb 2015 22:36:15 +0100 From: "Michael S. Tsirkin" Message-ID: <1424122283-12521-10-git-send-email-mst@redhat.com> References: <1424122283-12521-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424122283-12521-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH v3 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 , Thomas Huth , 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..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