From nobody Mon Feb 9 06:34:19 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1626564399; cv=none; d=zohomail.com; s=zohoarc; b=bw/AkifcLf9gOF7IDH8Z1gJRNVLJxdnrfUyVvrTqkupYh4bbCOKtnG3BjI9cTlLyJxE3M6/A0eBUnlsf3zQu5SbTNkLDVkt1S3/RZ2YXILMflvHUoRkt8pwmkkMr2jHoS7PTCmInFkoeiQxYb2hblFJONIgRofTNeMyaqgNBiIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626564399; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/MAEIGkxboaQ7/sKH4/N7ZsnrjiQlrtgLB/5WpkDnOs=; b=NX42aTcG0lvoTWVocjq7q1mxMaD9g377dgns+fS1GRsnBk6uY+0dZWiH1mYvYX8A6UHoSO5q8/buS2QS9h0ieIzDPuukcFQ0t6wv2v+a55/NCWQfRD1SIlK9M5iHrU4QNZAUdEL1L6b+EQFgQF/POC8/Wky+U+HNm9MLBhjUwtY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1626564399824932.8026699654155; Sat, 17 Jul 2021 16:26:39 -0700 (PDT) Received: from localhost ([::1]:43692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4the-00055v-QF for importer@patchew.org; Sat, 17 Jul 2021 19:26:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4tcS-0001mT-Cx for qemu-devel@nongnu.org; Sat, 17 Jul 2021 19:21:16 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:46945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4tcQ-0000kl-2d for qemu-devel@nongnu.org; Sat, 17 Jul 2021 19:21:16 -0400 Received: by mail-wm1-x334.google.com with SMTP id o30-20020a05600c511eb029022e0571d1a0so8062856wms.5 for ; Sat, 17 Jul 2021 16:21:13 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id o15sm7082517wmh.40.2021.07.17.16.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 16:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/MAEIGkxboaQ7/sKH4/N7ZsnrjiQlrtgLB/5WpkDnOs=; b=cqY1oFqGRGwvHn34Quim+J2Q1f6p6XxaH0Xh7IRjLZfYsvM1K2tWplrNPIF9aeo/oV Ugoy7oJJQR9LMY4brG6wrHf+S5vqJWKfbkSNF7kTKP69zhEpJ44PZAamVegGkFui+w9Z BcIWiwsOuHMg+4FooKKvscqk9wW5Aa4oiCzOAaB844nWnhqVzCCa+w+WVhMndMC3qycZ 9eblLz+Of+KkTy8ULSTkor+AKr1ZDsrP3KjLHIOTfjTR8rgYgl4Kk8Kx1VHMcQ+RbZ1F jx5PrNSiD91DILFjl6LLjhVQ2fbx6rCTFSFnDL9l0abDIR0ZSzKGu4q8DgnVYoMRFstj kOhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/MAEIGkxboaQ7/sKH4/N7ZsnrjiQlrtgLB/5WpkDnOs=; b=YWiJ9Hq0DhPJ8o2ZScFkIarWIIpuznQdk+NRR52yFBot8RuVuyVNV+vp5gZqfJlD/l ReYiI8zRHR6eJE46gS2powpDD/K0BhKsAsRJD1UYlvchSPVe9puAuQNWtfXT7A+l1Gt1 YcvBKgFNQ6Izbp+DKuLx7Ke8jIpGaVixSu8wYjZVhPSN1m/5V36fWW7blBtOquOBf4ei FpOdCiQlT2pPHuJjdHRg1q8QNQBlpVJ5fF8PMuoNZx07Sn2B9lW38N8v+RvekT9QzJru B3c0bk3SBx3uOBtvLV+8aMheV0xVNV/2zxKESATX6s5QNwoC2QxNLdAXS3m0ngof89j0 +Pxg== X-Gm-Message-State: AOAM5308hOemiWF0buKbupYr7Xa/F1Y48HE4L0iC4PJtb06Fg2Ls+794 MyzknImanX2zl5wFFmyzLYt8UOfVLBekKQ== X-Google-Smtp-Source: ABdhPJwVZFu7N6AxjUoRuVJARUUu0uYDAN1pCizZ7U8j3dn1TyHYr09Eoz38qU/sLFm/GYqQVQkbJQ== X-Received: by 2002:a7b:cb91:: with SMTP id m17mr23836061wmi.159.1626564072785; Sat, 17 Jul 2021 16:21:12 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 09/10] linux-user: Drop unneeded includes from qemu.h Date: Sun, 18 Jul 2021 00:21:02 +0100 Message-Id: <20210717232103.18047-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210717232103.18047-1-peter.maydell@linaro.org> References: <20210717232103.18047-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1626564400422100001 Content-Type: text/plain; charset="utf-8" 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=C3=A9 --- 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 fda90fc28d6..5c713fa8ab2 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -2,7 +2,6 @@ #define QEMU_H =20 #include "cpu.h" -#include "exec/exec-all.h" #include "exec/cpu_ldst.h" =20 #undef DEBUG_REMAP @@ -163,8 +162,6 @@ typedef struct TaskState { struct target_sigaltstack sigaltstack_used; } __attribute__((aligned(16))) TaskState; =20 -#include "qemu/log.h" - abi_long do_brk(abi_ulong new_brk); =20 /* 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) =20 -#include #endif /* QEMU_H */ diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h index 1729a8b62e1..661612a088b 100644 --- a/linux-user/user-internals.h +++ b/linux-user/user-internals.h @@ -20,6 +20,8 @@ =20 #include "hostdep.h" #include "exec/user/thunk.h" +#include "exec/exec-all.h" +#include "qemu/log.h" =20 extern char *exec_path; void init_task_state(TaskState *ts); diff --git a/thunk.c b/thunk.c index fc5be1a502e..dac4bf11c65 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" =20 #include "qemu.h" #include "exec/user/thunk.h" --=20 2.20.1