Received: from eggs.gnu.org ([2001:4830:134:3::10]:40683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLXbo-0000lZ-CL for qemu-devel@nongnu.org; Tue, 19 Jan 2016 09:50:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLXbn-0007WF-GJ for qemu-devel@nongnu.org; Tue, 19 Jan 2016 09:50:12 -0500 Date: Tue, 19 Jan 2016 15:50:03 +0100 From: Kevin Wolf Message-ID: <20160119145003.GB4579@noname.redhat.com> References: <1453140102-8600-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453140102-8600-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH] block: Clean up includes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, patches@linaro.org Am 18.01.2016 um 19:01 hat Peter Maydell geschrieben: > Clean up includes so that osdep.h is included first and headers > which it implies are not included manually. > > This commit was created with scripts/clean-includes. > > Signed-off-by: Peter Maydell > --- a/block/archipelago.c > +++ b/block/archipelago.c > @@ -50,6 +50,7 @@ > * > */ > > +#include "qemu/osdep.h" > #include "qemu-common.h" > #include "block/block_int.h" > #include "qemu/error-report.h" qemu/osdep.h is already included by qemu-common.h. Do you intend to remove all qemu/osdep.h includes from all header files (and possibly error out if it hasn't been included before) as soon as most/all .c files include it explicitly? This is what git grep says on include/: include/exec/cpu-defs.h:#include "qemu/osdep.h" include/exec/helper-head.h:#include "qemu/osdep.h" include/fpu/softfloat.h:#include "qemu/osdep.h" include/qemu-common.h:#include "qemu/osdep.h" include/qemu/bitmap.h:#include "qemu/osdep.h" include/qemu/module.h:#include "qemu/osdep.h" include/sysemu/seccomp.h:#include "qemu/osdep.h" Kevin