From patchwork Wed Nov 30 13:56:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 629485 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp874341pvb; Wed, 30 Nov 2022 05:57:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tetJQ7t0qrcjpUVGhRZCdN78R2Pw96wdg8sUaKjffezBI0hr0aJcyYikQI3oyATrAIpRS X-Received: by 2002:a0c:9c41:0:b0:4b8:65b8:134d with SMTP id w1-20020a0c9c41000000b004b865b8134dmr39878965qve.51.1669816653178; Wed, 30 Nov 2022 05:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669816653; cv=none; d=google.com; s=arc-20160816; b=hRxu8sYA9rnWBDMU5mvtLTpx2fg8XayKC6PJveYVDcs/ZSH6SHU/AYWxtKNFcxHhEw xwD65QHAFSXefuIPKWmFVvAI8Ta3t7emt8egT6NoyuPxnLm+OxSIQFVFmfS+xRYevmRC k1AJ2KMMJwDicnT943KZmsZic+TcP5fA6Ldp2H+3k0m7cWJGfjetkfRG8NVQo3KerzKp eA9jdzwmKOBVeEgSp9MhqxvCPtxoTk89jm6zko8kLeraAHNXO18LDRW0Wb2bA1b13YJx IMldrMeSWhGe2AyAZksL/UAQ+Q8vku5/cNPDE+rNmIdWziLfc0mHlLA/IpROVL81Laib bemg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=cPXtPBJHuo4HQbod770R5R9F/wtS4hpv1bd21GrVuT+gYM9umRM/QfZTG2cufJUxaT hGWikQVNTPjgmYl09CwIIqTHvMXXALT6Zn2otixbAJgHNC1riIio6bx0A1mPaKA2O4kJ fyw4khrTzHxqZMng87TlKx0d2jpT1SekFEK025hu5KiPM6Iz0goQ5o8yQzPi/gCmtlMO BZXOmeQUPBNbBewIXQkVRrYvfDirg7a3MuqUksUADSFBhctjTNp+S7jHJNyQzcyvb7JE XbNODkeHtPajTISY/HO1uag6crMcEvhAd4OOTxDWZj6oSdaGuHRMv4tGCDjw+rH6Robw nWxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0gV8yMB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 2-20020a0562140dc200b004bb70e44f6dsi917386qvt.188.2022.11.30.05.57.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Nov 2022 05:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0gV8yMB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0NaD-0001uf-Oh; Wed, 30 Nov 2022 08:57:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0NaC-0001u3-CM for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:57:04 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0Na6-0004S2-EO for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:57:02 -0500 Received: by mail-wm1-x329.google.com with SMTP id h4-20020a1c2104000000b003d0760654d3so47623wmh.4 for ; Wed, 30 Nov 2022 05:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=r0gV8yMBWmSokUsyf1zL/4TCnTIOruhYS25aOx+DaGu5NwODAVIdHCGPhn5iiVPNe4 fu6Hhh0oHITfGxnure6D01AGIzaWcyvL4hgJ5JqvffcfYhJPfUhQCNsHqMhS4yTC7eCY idJnHkZeNxS2uCNAk0+vTLrowDceXmue2kYbuMBH/KkPTAf3sHm2NATvWCeD5rMPicH8 9MuxUzKS3iiEiZ1sA3yNVur4/MyUV5myxWzb9C5eRlZi53Y/D0EwtbrKC4wbdA191yra 15CoxLD+aMg8saptHnXSBcJFaIb/ODxKFkMZPxrnx9LUbfwnLsC30XpxgdApwWB/6mnj Oywg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=oicZkmHL+2JNPP6mEioAzjRiN9u07QrIIID9TPoPmBzWismOpKC5Pus/NdAvBP7Oh+ T88CV1sN94B643q3WC8kYgWVLUqB8VFxTQqEF0kGOd6KQzVS4pO/pqxaCDSWhylbzleg KYlRpxercwXF6RizOjHn4aVqZmMl1Trz/nLmuyEgSNnjcSR0EWSgMsS3gNeHJrGN3gIk dXowKqixwiWSe1UunRa1i7UvVmKwhbd4nrePZJ8RowNjXYO6I0xTtQIJTVDdYmIhYhGP 14XlQxqeTK5NBGXScG1nQwoqoK5uihdIlF7AhAtIQ/JGCGLUBE6HtXYZY9LsVzvLX1SH WWhQ== X-Gm-Message-State: ANoB5pm5IVsaDJ3Of/qKy99EJ3oJIgF8tU092lBdFy5b27hp1XUAJmyd smeacwQdG3aVEtVmLvoTJAUMVbKTiRj1r5Q/ X-Received: by 2002:a05:600c:a56:b0:3cf:77a6:2c2e with SMTP id c22-20020a05600c0a5600b003cf77a62c2emr30471502wmq.179.1669816615816; Wed, 30 Nov 2022 05:56:55 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b003cf87623c16sm6396204wmb.4.2022.11.30.05.56.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 30 Nov 2022 05:56:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Thomas Huth , Yanan Wang , Paolo Bonzini , Marcel Apfelbaum Subject: [PATCH-for-8.0 2/2] hw: Reduce "qemu/accel.h" inclusion Date: Wed, 30 Nov 2022 14:56:41 +0100 Message-Id: <20221130135641.85328-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130135641.85328-1-philmd@linaro.org> References: <20221130135641.85328-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Move "qemu/accel.h" include from the heavily included "hw/boards.h" to hw/core/machine.c, the single file using the AccelState definition. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Fabiano Rosas Reviewed-by: Wilfred Mallawa --- hw/core/machine.c | 1 + include/hw/boards.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 8d34caa31d..42fc6f1e84 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -12,6 +12,7 @@ #include "qemu/osdep.h" #include "qemu/option.h" +#include "qemu/accel.h" #include "qapi/qmp/qerror.h" #include "sysemu/replay.h" #include "qemu/units.h" diff --git a/include/hw/boards.h b/include/hw/boards.h index 90f1dd3aeb..f00f74c5f4 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -6,7 +6,6 @@ #include "exec/memory.h" #include "sysemu/hostmem.h" #include "sysemu/blockdev.h" -#include "qemu/accel.h" #include "qapi/qapi-types-machine.h" #include "qemu/module.h" #include "qom/object.h"