Received: from [140.186.70.92] (port=32886 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDS5c-0005Cg-KI for qemu-devel@nongnu.org; Tue, 02 Nov 2010 21:24:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDS5b-0002iO-J0 for qemu-devel@nongnu.org; Tue, 02 Nov 2010 21:24:36 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:46478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDS5b-0002i7-AC for qemu-devel@nongnu.org; Tue, 02 Nov 2010 21:24:35 -0400 Date: Wed, 3 Nov 2010 10:24:30 +0900 From: Isaku Yamahata Message-ID: <20101103012430.GA26077@valinux.co.jp> References: <7e0bd57a938864f2bb60651f975f5bcaf042c4f2.1288689399.git.yamahata@valinux.co.jp> <20101102125712.GB29655@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101102125712.GB29655@redhat.com> Subject: [Qemu-devel] Re: [PATCH v7 2/6] pcie/aer: helper functions for pcie aer capability List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: skandasa@cisco.com, adnan@khaleel.us, etmartin@cisco.com, qemu-devel@nongnu.org, wexu2@cisco.com On Tue, Nov 02, 2010 at 02:57:12PM +0200, Michael S. Tsirkin wrote: > > +static void pcie_aer_clear_error(PCIDevice *dev); > > +static void pcie_aer_msg(PCIDevice *dev, const PCIEAERMsg *msg); > > + > > so what exactly is the order of calls that makes > removing the forward declarations impractical? > Is there a recursive call? If yes I'd like to > see it documented much better. Why do you think forward declaration is so bad? I don't see any such consensus and I don't think they aren't accused generally like goto. Can you please elaborate why you're trying so hard to prevent it? -- yamahata