From nobody Mon Oct 27 14:11:17 2025 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=1761334289; cv=none; d=zohomail.com; s=zohoarc; b=gbqoCfOFyiAorS6UBELore2uUs/JASAw5/ZM+Q5BV2EhJclKmVDBRekGvbZrAOmElB73ZZoRD3uEA1jFkuKnralEZNmOg2OtRDk3mwfTMVkqSd1y86vwV/gqFaWcQ8r5Qs3p6jc9duc/3dB9PC4N8DZkV68xT/XY6MyiO9C2jiw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761334289; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aGzJrcygtK07BMsaHC12W4FKVVudp6KCMI+Hev9pyzM=; b=Hwuf904KgsQEnTCjWzW4YQp3YFnyggBQjYW7um9vgU35dsJmaSrxVsnIDTcNriY8XMWulsAv3xHxTjHk55S0Ffw2MM+/w4T9LzdZQBfALni7MeyTDS/zwlme9VzIln1B0HZNUYQ8rKDMoOl6NIqW7Biaa7PE5D4zsyu10q4bUQc= 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 1761334289745616.3386439546948; Fri, 24 Oct 2025 12:31:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vCNUx-0008Ji-Fz; Fri, 24 Oct 2025 15:30:51 -0400 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 1vCNUp-0008Hp-EO for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:30:44 -0400 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 1vCNUn-0001C2-51 for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:30:43 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-47118259fd8so17292435e9.3 for ; Fri, 24 Oct 2025 12:30:40 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475dc0d1fb4sm1082595e9.2.2025.10.24.12.30.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 24 Oct 2025 12:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761334239; x=1761939039; 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=aGzJrcygtK07BMsaHC12W4FKVVudp6KCMI+Hev9pyzM=; b=wNIGNsdagXbgu3xdWqM1kuUbn7q6hGeZ+H3vxXzlIgQoEeoczNwGQpAHIypo0TD4nm PsSdo2azHunDYWacHLsDMHwFPm1ZwcLa6nuPQGBy86terGjqxKjNpbjvOpfw0ZvD/gyb 7TWng+1RoEcwwuYUVKvXnYyRaeIACqt48CMV5Zpj+w9DXLWknVgjGihJQGvtWL6gx7ki wpcg2u1R3extdcnVvJzpUQMN1C/JXEFQ7tkuuYucERiGvmjv1X8CyX9OTT2WAzpwaEXN T60yZ/YzxO/DtknqXsXY0gJ0NaDfSgoXYVqiuRLUzggkublN2Kwzu8FRfDKC8m3phuSl E6kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761334239; x=1761939039; 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=aGzJrcygtK07BMsaHC12W4FKVVudp6KCMI+Hev9pyzM=; b=mTfTCHJNoD/b9SKLcqiqEZ1oxSdVbNqeCSYTxHqi2QtXhvHEtxl8ytNKhwLTzO0W/B MBvS+sW05x0dNF/R9k7A7WDfiN8W9fE7xfWvv3AAukieg6F0gHu/Zg5Cp2FOsZv3kZTc YhTRxovNxB3s+jTUYhE/lbALXboHpzMlq+cI2r429o2OKpCQzjg8jDNuHtgVrmMzeSU5 EsvfJDMVLogBoXR9F5JHKpFy4iBksHuRuSA57WmCxrTI/pHcg2pDjsNWc8j6wByWTf9a dVmMzOsfZB1/XA+OpXxoOnAq/RlpvRcH75bTqa6vbGHQmAdA7LGflkV01/XhG+P6fiSc xmeA== X-Gm-Message-State: AOJu0YysDOYJyHfZQm/kkLZubUZEIdAtbqm8WyUle6530PbBmabkEnV0 3JHIwAxOJRnsTgJ+5fw7XA2mU292Qjo8Fvrw0Qu4LS9EBmliLMPD7QKN+qbxJCh/yo4FmEWPEkq EjPoZzks= X-Gm-Gg: ASbGncuhYqRELw8mLN6L4HTD7utWBqTjRvITD/6sl1BCCDqh2e56OYunpAvxxdZ5hwd evRQL0LEO9t34h9kqGgR3JAd3VJz/xa8ma/jvKfyWUxDKpo+EjSvZon5zJVHixH6RE+wxWeoKKK k5avfURywRtlB2g8TVnLam7WuAme1EZAl1EwChqQQbCCBKTyeCvh02oTQXOjTyAmWkxzQ1iuaU2 Swyd/tQmj09PKcv03UrdqBFQuestTw/Cp6pP3GB16ubpdtThvu8P7QPNRcNqXLjREesBBCOYu7U X4oDibD/+4Espw1MTiGxW5qHy5Wyp8Rqnnw+/dZK2mOSO0X5XuLcEQo0nh/Mx+h4UIvxPeAWjGj t635jYcDHcxeSLUE9wGCEMH9mfupvbadtIa0eD9/Xlmu6P5+qugn+9UlSSf+4nqOXL44YG+klBM Wv2sptCn0PKGA9190cozqijutxkDFndG2t66vaYDCCq7dM//cQB6YfhT+jPzuA X-Google-Smtp-Source: AGHT+IHeUYsa+S4os0Sq093WpujmYJvXDYDlO0YQqlbbf1owcSqiCMQcX5+5X6h29uWYt8XZBWsQBA== X-Received: by 2002:a05:600c:458b:b0:46e:4246:c90d with SMTP id 5b1f17b1804b1-471178774bfmr208206745e9.11.1761334238713; Fri, 24 Oct 2025 12:30:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Rolnik , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini Subject: [PATCH 17/27] hw/avr: Include missing 'system/memory.h' header Date: Fri, 24 Oct 2025 21:04:04 +0200 Message-ID: <20251024190416.8803-18-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251024190416.8803-1-philmd@linaro.org> References: <20251024190416.8803-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::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=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761334292727158500 "system/memory.h" header is indirectly pulled by "hw/sysbus.h". Include it explicitly to avoid when refactoring the latter: In file included from ../../hw/misc/avr_power.c:26: include/hw/misc/avr_power.h:40:18: error: field has incomplete type 'Memo= ryRegion' (aka 'struct MemoryRegion') 40 | MemoryRegion iomem; | ^ In file included from ../../hw/timer/avr_timer16.c:39: include/hw/timer/avr_timer16.h:51:18: error: field has incomplete type 'M= emoryRegion' (aka 'struct MemoryRegion') 51 | MemoryRegion iomem; | ^ In file included from ../../hw/char/avr_usart.c:23: include/hw/char/avr_usart.h:67:18: error: field has incomplete type 'Memo= ryRegion' (aka 'struct MemoryRegion') 67 | MemoryRegion mmio; | ^ include/qemu/typedefs.h:68:16: note: forward declaration of 'struct Memor= yRegion' 68 | typedef struct MemoryRegion MemoryRegion; | ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/char/avr_usart.h | 1 + include/hw/misc/avr_power.h | 1 + include/hw/timer/avr_timer16.h | 1 + 3 files changed, 3 insertions(+) diff --git a/include/hw/char/avr_usart.h b/include/hw/char/avr_usart.h index 0cc599e9b15..2d2fc0669f2 100644 --- a/include/hw/char/avr_usart.h +++ b/include/hw/char/avr_usart.h @@ -25,6 +25,7 @@ #include "hw/sysbus.h" #include "chardev/char-fe.h" #include "qom/object.h" +#include "system/memory.h" =20 /* Offsets of registers. */ #define USART_DR 0x06 diff --git a/include/hw/misc/avr_power.h b/include/hw/misc/avr_power.h index 388e421aa7b..a3d3d1de878 100644 --- a/include/hw/misc/avr_power.h +++ b/include/hw/misc/avr_power.h @@ -27,6 +27,7 @@ =20 #include "hw/sysbus.h" #include "qom/object.h" +#include "system/memory.h" =20 =20 #define TYPE_AVR_MASK "avr-power" diff --git a/include/hw/timer/avr_timer16.h b/include/hw/timer/avr_timer16.h index a1a032a24dc..c08288d6227 100644 --- a/include/hw/timer/avr_timer16.h +++ b/include/hw/timer/avr_timer16.h @@ -31,6 +31,7 @@ #include "hw/sysbus.h" #include "qemu/timer.h" #include "qom/object.h" +#include "system/memory.h" =20 enum NextInterrupt { OVERFLOW, --=20 2.51.0