From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIhjA-0000iR-Vt for qemu-devel@nongnu.org; Mon, 22 Jun 2009 07:30:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIhj6-0000i8-VU for qemu-devel@nongnu.org; Mon, 22 Jun 2009 07:30:20 -0400 Received: from [199.232.76.173] (port=55129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIhj6-0000i5-Ox for qemu-devel@nongnu.org; Mon, 22 Jun 2009 07:30:16 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38168) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIhj6-0006RY-Bm for qemu-devel@nongnu.org; Mon, 22 Jun 2009 07:30:16 -0400 Message-ID: <4A3F6AFC.2080908@redhat.com> Date: Mon, 22 Jun 2009 14:29:00 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 0/10] qdev patches. References: <1245243565-24807-1-git-send-email-kraxel@redhat.com> <4A3A51B9.90207@redhat.com> <4A3BB5F2.9050701@redhat.com> <200906191851.21563.paul@codesourcery.com> <4A3F4BB9.6060604@redhat.com> <4A3F50BA.2030103@redhat.com> <4A3F5583.90700@redhat.com> <4A3F6A34.5050109@redhat.com> In-Reply-To: <4A3F6A34.5050109@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Paul Brook , qemu-devel@nongnu.org On 06/22/2009 02:25 PM, Gerd Hoffmann wrote: > On 06/22/09 11:57, Gerd Hoffmann wrote: >> On 06/22/09 11:36, Avi Kivity wrote: >>> There's a third alternative, zero terminating the array. >>> >>> If most calls register one qdev, I'd prefer pci_qdev_register() and >>> pci_qdev_register_many(). >> >> Where register() takes a single instance and register_many() a >> zero-terminated array I guess? Sounds good. > > i.e. something like the attached patch (incremental to the whole patch > series). > Yes. -- error compiling committee.c: too many arguments to function