From patchwork Tue Jun 11 06:55:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 250468 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 81D212C0335 for ; Tue, 11 Jun 2013 17:00:53 +1000 (EST) Received: from localhost ([::1]:44815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmIZX-0000yW-An for incoming@patchwork.ozlabs.org; Tue, 11 Jun 2013 03:00:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmIZ6-0000u7-OI for qemu-devel@nongnu.org; Tue, 11 Jun 2013 03:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmIZ5-0000gh-NN for qemu-devel@nongnu.org; Tue, 11 Jun 2013 03:00:24 -0400 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:42914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmIZ5-0000gW-GR for qemu-devel@nongnu.org; Tue, 11 Jun 2013 03:00:23 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so8176155pbb.36 for ; Tue, 11 Jun 2013 00:00:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=nIfqT2hDXwbUmEiK1MvcVgeDyln4QLbR7N4qQ53AsCI=; b=H6Yyd9OjKJNqAjooJemlrBJSeORBrXmuDFoGsfmI7zUsXaxIEuC/N5M9m5lYckfgbM +rlgdckCi2vWDQflQAr/F49NPFHeBzFeyq3wEsUmmgBKl+vm5oa6ywO14GDNmlRI0546 L2yCkts0yp+9q3v926o4OAhFPJQ5FZ7XV7bkSorLuFh6nZDphItUJqk5emF3YS4GU967 7ZDOu2PMIXi8RZY9K1X8PtS+O9Q9hG6ov8NCIR0WIz72xffsqK4u2Ef/VOpFAwAt/X/X Obj6nyZyPkMqcqvdbKaqluYDnwMvnq0aK7n8xtXXxVBa21K35gSuk1xU3uyIOaTcupKc wNFg== X-Received: by 10.68.132.199 with SMTP id ow7mr13044646pbb.161.1370934022656; Tue, 11 Jun 2013 00:00:22 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id vb8sm13486991pbc.11.2013.06.11.00.00.16 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 11 Jun 2013 00:00:21 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: qemu-devel@nongnu.org Date: Tue, 11 Jun 2013 16:55:12 +1000 Message-Id: X-Mailer: git-send-email 1.8.3.rc1.44.gb387c77.dirty In-Reply-To: References: X-Gm-Message-State: ALoCoQmeatL4+LCsKivWR4aSe5qSShxtnpOhBABX0fhvTDyoiQXnGuSfVXRm4UmuxAuQKfziy0qw X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::231 Cc: pbonzini@redhat.com, aliguori@us.ibm.com, afaerber@suse.de Subject: [Qemu-devel] [RFT PATCH v1 20/30] misc/vfio: substitute ->qdev casts with DEVICE() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite Signed-off-by: Peter Crosthwaite --- hw/misc/vfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 693a9ff..aa75dc2 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -3072,7 +3072,7 @@ static int vfio_initfn(PCIDevice *pdev) } } - add_boot_device_path(vdev->bootindex, &pdev->qdev, NULL); + add_boot_device_path(vdev->bootindex, DEVICE(pdev), NULL); return 0; @@ -3106,7 +3106,7 @@ static void vfio_exitfn(PCIDevice *pdev) static void vfio_pci_reset(DeviceState *dev) { - PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, dev); + PCIDevice *pdev = PCI_DEVICE(dev); VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); uint16_t cmd;