From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6wq5-0002a9-FV for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:49:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6wq0-0003er-KP for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:49:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46778) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6wq0-0003dg-FE for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:49:04 -0500 Date: Wed, 16 Nov 2016 17:49:01 +0800 From: Fam Zheng Message-ID: <20161116094901.GA31999@lemon> References: <20161114180359.GA24217@lemon> <20161115020405.GB9226@lemon> <20161115101850.GA4836@stefanha-x1.localdomain> <20161115124417.GC9226@lemon> <20161115144551.GB17672@stefanha-x1.localdomain> <20161115150016.GD9226@lemon> <20161115192026.GA26428@stefanha-x1.localdomain> <87eg2bokx0.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eg2bokx0.fsf@dusky.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH v6 1/2] block/vxhs.c: Add support for a new block device type called "vxhs" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: ashish mittal , Kevin Wolf , Peter Maydell , Venkatesha.Mg@veritas.com, Ashish Mittal , Stefan Hajnoczi , Jeff Cody , qemu-devel , Rakesh Ranjan , Ketan Nilangekar , Abhijit Dey , Paolo Bonzini , Buddhi.Madhav@veritas.com On Wed, 11/16 10:04, Markus Armbruster wrote: > ashish mittal writes: > > > Thanks for concluding on this. > > > > I will rearrange the qnio_api.h header accordingly as follows: > > > > +#include "qemu/osdep.h" > > Headers should not include osdep.h. This is about including "osdep.h" _and_ "qnio_api.h" in block/vxhs.c, so what Ashish means looks good to me. Fam > > > +#include <=== after osdep.h > > +#include "block/block_int.h" > > Including block_int.h in a header is problematic. Are you sure you need > it? Will qnio/qnio_api.h ever be included outside block/? > > > +#include "qapi/qmp/qerror.h" > > +#include "qapi/qmp/qdict.h" > > +#include "qapi/qmp/qstring.h" > > +#include "trace.h" > > +#include "qemu/uri.h" > > +#include "qapi/error.h" > > +#include "qemu/error-report.h" <==== remove > > In general, headers should include what they need, but no more. >