From patchwork Mon Feb 26 09:05:59 2024 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: 775836 Delivered-To: patch@linaro.org Received: by 2002:a5d:6103:0:b0:33d:da16:65b6 with SMTP id v3csp230685wrt; Mon, 26 Feb 2024 01:07:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUnXeGZGovVohy5zI8fjgLxLmfK2a3bmNe8/zuZndAkpSj9j0XHoYtdWOSABzaE05VQOYlhXaToQEHurDm4fvp9 X-Google-Smtp-Source: AGHT+IEZ+0KS4wVKV7vkGIiR/Ar7hy8gQ4oip/mOXRFCoE+6kvr7n8ZXoTKdmE+HpJU0xh4389tt X-Received: by 2002:a05:622a:40e:b0:42e:1315:7cee with SMTP id n14-20020a05622a040e00b0042e13157ceemr6827697qtx.65.1708938421306; Mon, 26 Feb 2024 01:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708938421; cv=none; d=google.com; s=arc-20160816; b=Ctt+FmRb0kYQKq+cXzZnxAoOh1fqqXNF+57pqPyHVnE8vlGTVvHNF0Uq3HVz03nJ1t bLBWYEYKGpECree2D0/fERiBeqIlzNVGGnUGCSSCw8cHEkAdr+IwMjI2aghuvt33uvVQ L946f8nbYpwUjqTRyQ2uqrN2hSx+a6eNfsvrCX9xJh2aaQh7LK8LXyIwVxoxEhZRXP3/ AY9af5BwRjAkOWHoUPAqaDNPU4syGG2LgC7i9/R7ZoU3yFhm5obCH4NePq3whrp0Em8c 9+OSaSGA82sCGTG8motiFpcjOvnuW55fVFLVyzZz8X2H+kgi8zVDvuW6D0z4i+PMBySH yjpA== 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=Fx8gADBe2ucDCcShPCUpi1E8G9A7PtB4VTqy5UmiqEI=; fh=TehPcX3sTwKTpAmymlvpSiGILhJMNR9XHiC/gdK04Uc=; b=e45oLNQw3lsfuki6ywF/czTuGoelFI/piXBt2kYyqi9T3aQRlRjR2pZ70V6hHv9qUg XphRCdWD8jdJ3DKhL4hNWt8GedAI97xda+KdFqfo4LcIilvsCynjNmAoUhBbyUmt6GW/ IN9hRSAWl9Yh97Adb0Rw3fG5Eq60jNtDKsQHu/FFczdU9ssq0uzB767i+522FFQH6Fs1 h1FmaID+tHSCQwaGZ+n2BqZV3RKurxBUWcoeeYmGtmN8HpuBXiu9xC5GvfpMmfWzC0fx vAA6M3D7Nn7D6KP9uUmG1M93Q1FYYhUIS06MpOpHkOAVMZ4yNnmaOTxUxTSJGNExh+0A NfpA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I4/e4LbA"; 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 d19-20020ac847d3000000b0042e81f682f9si2115647qtr.453.2024.02.26.01.07.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Feb 2024 01:07:01 -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="I4/e4LbA"; 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 1reWwE-000781-Hx; Mon, 26 Feb 2024 04:06:18 -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 1reWwA-00077G-Em for qemu-devel@nongnu.org; Mon, 26 Feb 2024 04:06:14 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reWw8-0003Vh-9K for qemu-devel@nongnu.org; Mon, 26 Feb 2024 04:06:13 -0500 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a3f5808b0dfso379056266b.1 for ; Mon, 26 Feb 2024 01:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708938370; x=1709543170; darn=nongnu.org; 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=Fx8gADBe2ucDCcShPCUpi1E8G9A7PtB4VTqy5UmiqEI=; b=I4/e4LbAG79Xcfu2u6/gz/iU8cJhz1Nk9XHaj0RA/fpAlKgD/jDtruMU9vpRf6YE7s i7oPlZ5My8eNyE/t92rNy9N9hW8ySF7V9xHzEwMAJymiGNNjT5ocQOoa2rsc6XeNK0W7 y1kOKgyuKVCSaujepcuTDyUTISq22Av4AvyFbB0LfHWjXZ6f5UaRHARObP97Hmaw50X5 +oKNLiHNDg5N502dqvHRFBlD5zGr83/G7SoUBkXaFtV+UW5BMAtyufGRS9IBVQeXo329 sl1kv9ClD+oTlabUYQ9icfu5yJ+WGanTesCBpIHW6kg5RNrBpVrZug8dTOMfVVDlKzYS uKXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708938370; x=1709543170; 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=Fx8gADBe2ucDCcShPCUpi1E8G9A7PtB4VTqy5UmiqEI=; b=K1tlz/0FYad9ytUIAp20fYm9WUUVBgtDTDk5gtLg6Q0zW7Cwwjh0/HZVo8IvSqXSVp lpPxyQVp4GHnOviRWSEKGpYFSSnIGtXxjp+oQ7p5jt1xyybIDXzO09m/gQSEgtbFQSaS BwkcEZRdC7NXI0leImcIgo3q6o1qk34pDAMAiRmMUG9Hn704PejnEg02RVPWyl9CSUqr hJZvhgR6JYkXpEKhWgfv7ddaQkjUssZFhUTZs1MgW3jGIZzbkjmhPCAzc5mqjgtbEy1l y3waQ98HA1X18wBJnEaSo2wQiTDTEvqhajUv4g0xML4ktNA5EHq0S5Nn3Cm0G/hBhe1Z d7Cg== X-Gm-Message-State: AOJu0YwUcVUAJCakTuAdOWXIbjlYGgRHtsGCvldnXR6XVg4zt3nqFLfh SX9oj4np+cdwdgKNpKeKr2WbqlICxG7ttjBbrXv7t5GtJ3VC0BZ7Wmr/whqdpgMCTFzlDRfSCx/ 8 X-Received: by 2002:a17:906:a00b:b0:a43:3879:35e0 with SMTP id p11-20020a170906a00b00b00a43387935e0mr1808930ejy.11.1708938370099; Mon, 26 Feb 2024 01:06:10 -0800 (PST) Received: from m1x-phil.lan ([176.176.164.69]) by smtp.gmail.com with ESMTPSA id tl18-20020a170907c31200b00a437d3e975esm159660ejc.210.2024.02.26.01.06.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 26 Feb 2024 01:06:09 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Zhao Liu Cc: Richard Henderson , Marcel Apfelbaum , Igor Mammedov , Paolo Bonzini , Ani Sinha , Eduardo Habkost , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 1/2] hw/acpi/ich9: Include missing headers Date: Mon, 26 Feb 2024 10:05:59 +0100 Message-ID: <20240226090600.31952-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240226090600.31952-1-philmd@linaro.org> References: <20240226090600.31952-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=philmd@linaro.org; helo=mail-ej1-x62a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 The ICH9LPCPMRegs structure has MemoryRegion and Notifier fields, so requires the "qemu/notify.h" and "exec/memory.h" headers. However nothing from "hw/acpi/acpi_dev_interface.h" is required, so reduce its inclusion to hw/acpi/ich9.c source file where it is used. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu --- include/hw/acpi/ich9.h | 3 ++- hw/acpi/ich9.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/hw/acpi/ich9.h b/include/hw/acpi/ich9.h index 2faf7f0cae..215de3c91f 100644 --- a/include/hw/acpi/ich9.h +++ b/include/hw/acpi/ich9.h @@ -21,12 +21,13 @@ #ifndef HW_ACPI_ICH9_H #define HW_ACPI_ICH9_H +#include "qemu/notify.h" +#include "exec/memory.h" #include "hw/acpi/acpi.h" #include "hw/acpi/cpu_hotplug.h" #include "hw/acpi/cpu.h" #include "hw/acpi/pcihp.h" #include "hw/acpi/memory_hotplug.h" -#include "hw/acpi/acpi_dev_interface.h" #include "hw/acpi/ich9_tco.h" #define ACPI_PCIHP_ADDR_ICH9 0x0cc0 diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 573d032e8e..6205de6046 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -34,8 +34,8 @@ #include "sysemu/reset.h" #include "sysemu/runstate.h" #include "hw/acpi/acpi.h" +#include "hw/acpi/acpi_dev_interface.h" #include "hw/acpi/ich9_tco.h" - #include "hw/southbridge/ich9.h" #include "hw/mem/pc-dimm.h" #include "hw/mem/nvdimm.h"