Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 093A7CCF9E0 for ; Fri, 24 Oct 2025 19:30:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vCNUr-0008I6-MQ; Fri, 24 Oct 2025 15:30:47 -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 1vCNUo-0008Ha-RD for qemu-arm@nongnu.org; Fri, 24 Oct 2025 15:30:42 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vCNUn-0001Bx-5D for qemu-arm@nongnu.org; Fri, 24 Oct 2025 15:30:42 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-471131d6121so18882525e9.1 for ; Fri, 24 Oct 2025 12:30:40 -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=ctMKacVhM6x9vYEq91J0g+Ie+HIfVwgp6NNxyDz6l3GrBxW9aDQaVZDnIjICX+lamr b8Vf1qy9vyeV2zEkIUi2D7wcgSS2CGQDvKNr6bqkGms51TY0hbgH0Xs7iud2OQMAma27 pSReQia28bkulEsayysm2E3S7t37MyzLC7xODDuPtaxb0GX/zZ2TsYBo3680IsNQw0aJ mKhkyzxS13dF47ettSlRivbrT0CEiBcU+vubzDwsOIyNx6lMwrUZXxbkpu3Auhk7KqlW 9PtBZuYITwvLXAP571EbJvF9dSFKXVFv7GkOQM7KusKaxeY9WLxw7GHO4UVmqm5Jspqs JZgA== X-Gm-Message-State: AOJu0YxdIrAa7AOiN7n4QyHu2XLYP6D0iklwe59297f5fmXyU4NJ6xQK tUb9jvH+7aJyl4hfRaKp7qLTxzY66pX+SIN/UT6cCyyYAtc9dYue8wu7yiCg18D3srI= X-Gm-Gg: ASbGncuslGzsDEuSKF9gEcGOm7tUIy3EUTxi5TiNLAmGIPwPa68xbdZ7wu8rd2Spbr3 KWmB7z/WNts9l6KIay1ZDOLr0WtWpkZUpeNheyC3rTo4KB7ueYG1UZqP7a92JIvww0slP0F66In cVqfViYSCfkVV/ns9TEYScBIirTI2ukjIUfnZVUcBAz7Po8IwUu6rsKhzOIs8wDxU7fh3+bllik vY6g/c3bddRrl6Ewg+xPsM3iVwRgGBr6nQ9uY5yIuKdpZRf2u03LvUZI2dge+Xhk/WBwajqW+Uw BJOwLbbbZonokSaDor6EU2BYwhU+lUjQ/6K8wiK7+AgQOoVd2VHaRuHgilubQhM7ARHsRmUwUA2 AXQD5W3Nyjmo50IM9wne6yn8yoJ8DFRFIOinRXzJL6CyR5WIRYBqr6AcZAJoqvk6L38hQS8zXLo qH0HjYltaHwsKv+Bmh/qgYEXX8ySiTNgPdrNA5Q3B+66xUpZ53WaS+6hf/M5Vu 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) 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) 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: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org "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 'MemoryRegion' (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 'MemoryRegion' (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 'MemoryRegion' (aka 'struct MemoryRegion') 67 | MemoryRegion mmio; | ^ include/qemu/typedefs.h:68:16: note: forward declaration of 'struct MemoryRegion' 68 | typedef struct MemoryRegion MemoryRegion; | ^ Signed-off-by: Philippe Mathieu-Daudé --- 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" /* 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 @@ #include "hw/sysbus.h" #include "qom/object.h" +#include "system/memory.h" #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" enum NextInterrupt { OVERFLOW, -- 2.51.0