From patchwork Fri Jan 29 17:49:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 8166121 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C2ED39FBF9 for ; Fri, 29 Jan 2016 18:17:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D34C3203DC for ; Fri, 29 Jan 2016 18:17:56 +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 E157E203DB for ; Fri, 29 Jan 2016 18:17:54 +0000 (UTC) Received: from localhost ([::1]:36080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDcI-0003Yp-7K for patchwork-qemu-devel@patchwork.kernel.org; Fri, 29 Jan 2016 13:17:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDc8-0003YO-HC for qemu-devel@nongnu.org; Fri, 29 Jan 2016 13:17:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPDc7-0002Ht-89 for qemu-devel@nongnu.org; Fri, 29 Jan 2016 13:17:44 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:59702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDc7-0002HG-16 for qemu-devel@nongnu.org; Fri, 29 Jan 2016 13:17:43 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1aPDBN-0001Qt-OF; Fri, 29 Jan 2016 17:50:05 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 29 Jan 2016 17:49:53 +0000 Message-Id: <1454089805-5470-4-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1454089805-5470-1-git-send-email-peter.maydell@linaro.org> References: <1454089805-5470-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 03/15] bsd-user: 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 --- bsd-user/bsdload.c | 8 +------- bsd-user/elfload.c | 8 +------- bsd-user/main.c | 8 +------- bsd-user/mmap.c | 7 +------ bsd-user/signal.c | 7 +------ bsd-user/strace.c | 6 +----- bsd-user/syscall.c | 12 +----------- bsd-user/uaccess.c | 3 +-- 8 files changed, 8 insertions(+), 51 deletions(-) diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 2abc713..94eec36 100644 --- a/bsd-user/bsdload.c +++ b/bsd-user/bsdload.c @@ -1,12 +1,6 @@ /* Code for loading BSD executables. Mostly linux kernel code. */ -#include -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include "qemu.h" diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 59a7bdf..0a6092b 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -1,13 +1,7 @@ /* This is the Linux kernel elf-loading code, ported into user space */ -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include -#include -#include #include "qemu.h" #include "disas/disas.h" diff --git a/bsd-user/main.c b/bsd-user/main.c index 1ecaeb5..1f3575d 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -16,14 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include -#include #include #include "qemu.h" diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index 092bf7f..6ab5334 100644 --- a/bsd-user/mmap.c +++ b/bsd-user/mmap.c @@ -16,12 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include #include "qemu.h" diff --git a/bsd-user/signal.c b/bsd-user/signal.c index 4887ecc..f6f7aa2 100644 --- a/bsd-user/signal.c +++ b/bsd-user/signal.c @@ -16,12 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include "qemu.h" #include "target_signal.h" diff --git a/bsd-user/strace.c b/bsd-user/strace.c index e33dd4d..fa66fe1 100644 --- a/bsd-user/strace.c +++ b/bsd-user/strace.c @@ -16,14 +16,10 @@ * along with this program; if not, see . */ -#include -#include +#include "qemu/osdep.h" #include -#include -#include #include #include -#include #include "qemu.h" diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index a4d1583..35f784c 100644 --- a/bsd-user/syscall.c +++ b/bsd-user/syscall.c @@ -16,17 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include #include #include diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c index 677f19c..7cb6d17 100644 --- a/bsd-user/uaccess.c +++ b/bsd-user/uaccess.c @@ -1,6 +1,5 @@ /* User memory access */ -#include -#include +#include "qemu/osdep.h" #include "qemu.h"