From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6w8x-0002ec-Ai for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:04:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6w8u-00079g-2s for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:04:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56728) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6w8t-00079K-U8 for qemu-devel@nongnu.org; Wed, 16 Nov 2016 04:04:32 -0500 From: Markus Armbruster References: <20161114150701.GD26198@stefanha-x1.localdomain> <20161114154906.GC2373@lemon> <20161114165034.GA1352@stefanha-x1.localdomain> <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> Date: Wed, 16 Nov 2016 10:04:27 +0100 In-Reply-To: (ashish mittal's message of "Tue, 15 Nov 2016 12:39:25 -0800") Message-ID: <87eg2bokx0.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: ashish mittal Cc: Stefan Hajnoczi , Kevin Wolf , Peter Maydell , Venkatesha.Mg@veritas.com, Ashish Mittal , Fam Zheng , Jeff Cody , qemu-devel , Rakesh Ranjan , Ketan Nilangekar , Abhijit Dey , Paolo Bonzini , Buddhi.Madhav@veritas.com 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. > +#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.