From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67B43C433EF for ; Thu, 16 Sep 2021 15:22:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2EDB6610A4 for ; Thu, 16 Sep 2021 15:22:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2EDB6610A4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=vivier.eu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:49112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtDN-0000Sh-AE for qemu-devel@archiver.kernel.org; Thu, 16 Sep 2021 11:22:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQt4L-00030y-Sh for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:12:57 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:56961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQt4I-0004GF-MT for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:12:57 -0400 Received: from quad ([82.142.27.6]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N5FMB-1msD2f36rF-0116tm; Thu, 16 Sep 2021 17:12:44 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 09/10] linux-user: Drop unneeded includes from qemu.h Date: Thu, 16 Sep 2021 17:12:36 +0200 Message-Id: <20210916151237.1188301-10-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210916151237.1188301-1-laurent@vivier.eu> References: <20210916151237.1188301-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ne4y8ERRDaP4aq1EtLqQPN1JC1/Ly987RYcTJ0ConyA9aBlqTsU NZteHGI44I8xFIt3KUbjEHMkh/f4Um8sqC1SvCYv8uHQSYO/ZNtrQibo7Ur99mtEkloEZSL 6VOcQ/ssNHOZwcGD9Va1DnseRO84SfhR/018JsrxmstVIlq66viW+IICS1ESeZ2hYfV3Bdz 5NodkHg2TZ1hsH3aABOXw== X-UI-Out-Filterresults: notjunk:1;V03:K0:77sm8Cb5qBE=:7PWukU9TjrhMpuShtKS2R2 WQ/5utgZjINAm38NZDGb3kRRLNTgICF2nz03YmWQb0Wi42VyxvOCUBjtcOVQmAUNEbHHQCNQH +KnXQ8l8uoeVyrfIbYBRmSRMZzTxTckTyHb+He2vK754UxN+M/O5iYNJm81czlomAqv+V0M+V WL0kb6e3vA1pdq2y6y00yIDn79BVaBg1bR0jx/imd7DOVmTbA186M0E0JoMgor4HF8WrfrsjM STsYtcPkzg5J4p6tz+TmURMyRjlxi/zEP5Vh+GPkEMpzBgVx8Vgj4cL1Eu7ZQJH8eY+wecUVZ HH9we4lbJluEfiLXspbsOOPcy3mcgw7aLtfsKVmPXsSfCeKWESgr0jeO0ArYtX8g4afhJEBFQ lLTNVQTA0mc2lksBp20nf5onFa572NXHyqb/rRtn7aLdrh9GG/C0hsslS6Nf+6aKwr3QT9YXv ceGOHl6LhXhlmd2rxMpThezqFKwD8VDdJZqakvP7jd+il01T7I8xdH9Juk7vwTFFL9rkUop1j lb2sKMbwRExEhZxU1I8cAsIsEwQz7p0R+/MiF3G6OvjoGjPCPBs97mDGvfPO1wmmEod9wOvl5 s9gdg1eAohLwmAYyf5sGUDXjssaztbvQPv3ETm4hImqDQRl0RPYgkB4MXdUKDqApBy1XMjGPe Z31gkBX+iDvGhNGDbKnAkQZe4rhbqrw/11zZUyAz7QrouLuTcRg5C66/VVcxtltWcytK1RBN+ DOK5kizXL74RZhtT+hFi6yXOZL8eB6o9qe8kBA== Received-SPF: none client-ip=212.227.17.13; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell Trim down the #includes in qemu.h where we can, either by dropping unneeded headers or by moving them to user-internals.h. This includes deleting a couple of #includes that appear at weird points midway through the header file. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210908154405.15417-10-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/qemu.h | 4 ---- linux-user/user-internals.h | 2 ++ thunk.c | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index fda90fc28d68..5c713fa8ab26 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -2,7 +2,6 @@ #define QEMU_H #include "cpu.h" -#include "exec/exec-all.h" #include "exec/cpu_ldst.h" #undef DEBUG_REMAP @@ -163,8 +162,6 @@ typedef struct TaskState { struct target_sigaltstack sigaltstack_used; } __attribute__((aligned(16))) TaskState; -#include "qemu/log.h" - abi_long do_brk(abi_ulong new_brk); /* user access */ @@ -349,5 +346,4 @@ void *lock_user_string(abi_ulong guest_addr); #define unlock_user_struct(host_ptr, guest_addr, copy) \ unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0) -#include #endif /* QEMU_H */ diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h index 1729a8b62e18..661612a088b5 100644 --- a/linux-user/user-internals.h +++ b/linux-user/user-internals.h @@ -20,6 +20,8 @@ #include "hostdep.h" #include "exec/user/thunk.h" +#include "exec/exec-all.h" +#include "qemu/log.h" extern char *exec_path; void init_task_state(TaskState *ts); diff --git a/thunk.c b/thunk.c index fc5be1a502e7..dac4bf11c65b 100644 --- a/thunk.c +++ b/thunk.c @@ -17,6 +17,7 @@ * License along with this library; if not, see . */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "qemu.h" #include "exec/user/thunk.h" -- 2.31.1