From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJrl-0004FA-6m for qemu-devel@nongnu.org; Sat, 07 Jun 2014 12:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtJrk-00026q-FD for qemu-devel@nongnu.org; Sat, 07 Jun 2014 12:53:13 -0400 From: Peter Maydell Date: Sat, 7 Jun 2014 17:53:11 +0100 Message-Id: <1402159991-13919-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] hw/net/ne2000-isa: Register vmstate struct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, patches@linaro.org The ne2000-isa device defines a VMState struct for migration, but we forgot to actually register it. Correct this deficiency by setting dc->vmsd. Signed-off-by: Peter Maydell --- I think this is the last of the "oops, we didn't actually register the vmstate" bugs that clang 3.4 warns about. hw/net/ne2000-isa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index c660e58..0a14f6d 100644 --- a/hw/net/ne2000-isa.c +++ b/hw/net/ne2000-isa.c @@ -98,6 +98,7 @@ static void isa_ne2000_class_initfn(ObjectClass *klass, void *data) dc->realize = isa_ne2000_realizefn; dc->props = ne2000_isa_properties; + dc->vmsd = &vmstate_isa_ne2000; set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); } -- 1.8.5.4