From patchwork Tue Jan 26 18:16:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 8126271 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DFB04BEEE5 for ; Tue, 26 Jan 2016 18:35:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0AE162028D for ; Tue, 26 Jan 2016 18:35:36 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 37B86202E6 for ; Tue, 26 Jan 2016 18:35:34 +0000 (UTC) Received: from localhost ([::1]:46056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO8Sj-0005hd-Kf for patchwork-qemu-devel@patchwork.kernel.org; Tue, 26 Jan 2016 13:35:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO8BW-0006Vf-3n for qemu-devel@nongnu.org; Tue, 26 Jan 2016 13:17:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO8BS-0007dV-Rq for qemu-devel@nongnu.org; Tue, 26 Jan 2016 13:17:46 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:59642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO8BS-0007X4-7F for qemu-devel@nongnu.org; Tue, 26 Jan 2016 13:17:42 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1aO8BG-0000Cs-QX; Tue, 26 Jan 2016 18:17:30 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 26 Jan 2016 18:16:54 +0000 Message-Id: <1453832250-766-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1453832250-766-1-git-send-email-peter.maydell@linaro.org> References: <1453832250-766-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:8b0:1d0::1 Cc: patches@linaro.org Subject: [Qemu-devel] [PATCH 01/37] migration: Clean up includes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- migration/block.c | 2 +- migration/exec.c | 2 +- migration/fd.c | 1 + migration/migration.c | 1 + migration/postcopy-ram.c | 4 +--- migration/qemu-file-buf.c | 1 + migration/qemu-file-stdio.c | 1 + migration/qemu-file-unix.c | 1 + migration/qemu-file.c | 1 + migration/ram.c | 2 +- migration/rdma.c | 4 +--- migration/savevm.c | 2 +- migration/tcp.c | 2 +- migration/unix.c | 2 +- migration/vmstate.c | 1 + migration/xbzrle.c | 1 + 16 files changed, 16 insertions(+), 12 deletions(-) diff --git a/migration/block.c b/migration/block.c index 656f38f..a444058 100644 --- a/migration/block.c +++ b/migration/block.c @@ -13,6 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "block/block.h" #include "qemu/error-report.h" @@ -24,7 +25,6 @@ #include "migration/migration.h" #include "sysemu/blockdev.h" #include "sysemu/block-backend.h" -#include #define BLOCK_SIZE (1 << 20) #define BDRV_SECTORS_PER_DIRTY_CHUNK (BLOCK_SIZE >> BDRV_SECTOR_BITS) diff --git a/migration/exec.c b/migration/exec.c index 8406d2b..f1b5e47 100644 --- a/migration/exec.c +++ b/migration/exec.c @@ -15,13 +15,13 @@ * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/sockets.h" #include "qemu/main-loop.h" #include "migration/migration.h" #include "migration/qemu-file.h" #include "block/block.h" -#include #include //#define DEBUG_MIGRATION_EXEC diff --git a/migration/fd.c b/migration/fd.c index 3e4bed0..c0afc96 100644 --- a/migration/fd.c +++ b/migration/fd.c @@ -13,6 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/main-loop.h" #include "qemu/sockets.h" diff --git a/migration/migration.c b/migration/migration.c index aaca451..2c76998 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -13,6 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 3946aa9..02b28ed 100644 --- a/migration/postcopy-ram.c +++ b/migration/postcopy-ram.c @@ -16,9 +16,8 @@ * source to the destination before all the data has been copied. */ +#include "qemu/osdep.h" #include -#include -#include #include "qemu-common.h" #include "migration/migration.h" @@ -57,7 +56,6 @@ struct PostcopyDiscardState { #include #include #include -#include #include /* for __u64 */ #endif diff --git a/migration/qemu-file-buf.c b/migration/qemu-file-buf.c index 49516b8..7b8e78e 100644 --- a/migration/qemu-file-buf.c +++ b/migration/qemu-file-buf.c @@ -25,6 +25,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h" diff --git a/migration/qemu-file-stdio.c b/migration/qemu-file-stdio.c index 9bde9db..f402e8f 100644 --- a/migration/qemu-file-stdio.c +++ b/migration/qemu-file-stdio.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/coroutine.h" #include "migration/qemu-file.h" diff --git a/migration/qemu-file-unix.c b/migration/qemu-file-unix.c index 6ca53e7..61b059b 100644 --- a/migration/qemu-file-unix.c +++ b/migration/qemu-file-unix.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h" diff --git a/migration/qemu-file.c b/migration/qemu-file.c index 0bbd257..6f4a129 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include #include "qemu-common.h" #include "qemu/error-report.h" diff --git a/migration/ram.c b/migration/ram.c index e49749d..40d0533 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -25,7 +25,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include +#include "qemu/osdep.h" #include #include "qapi-event.h" #include "qemu/bitops.h" diff --git a/migration/rdma.c b/migration/rdma.c index dcabb91..86a13b8 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -11,6 +11,7 @@ * later. See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "migration/migration.h" #include "migration/qemu-file.h" @@ -20,12 +21,9 @@ #include "qemu/sockets.h" #include "qemu/bitmap.h" #include "qemu/coroutine.h" -#include -#include #include #include #include -#include #include #include "trace.h" diff --git a/migration/savevm.c b/migration/savevm.c index b9caf59..954988d 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -26,7 +26,7 @@ * THE SOFTWARE. */ -#include "config-host.h" +#include "qemu/osdep.h" #include "qemu-common.h" #include "hw/boards.h" #include "hw/hw.h" diff --git a/migration/tcp.c b/migration/tcp.c index ae89172..ae80e94 100644 --- a/migration/tcp.c +++ b/migration/tcp.c @@ -13,7 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ -#include +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" diff --git a/migration/unix.c b/migration/unix.c index b591813..a721c4a 100644 --- a/migration/unix.c +++ b/migration/unix.c @@ -13,7 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ -#include +#include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/error-report.h" diff --git a/migration/vmstate.c b/migration/vmstate.c index a7ad7f2..bf3d5db 100644 --- a/migration/vmstate.c +++ b/migration/vmstate.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "qemu-common.h" #include "migration/migration.h" #include "migration/qemu-file.h" diff --git a/migration/xbzrle.c b/migration/xbzrle.c index 8e220bf..4db3f6c 100644 --- a/migration/xbzrle.c +++ b/migration/xbzrle.c @@ -10,6 +10,7 @@ * See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "include/migration/migration.h"