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 73695CCD1BF for ; Fri, 24 Oct 2025 19:40:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vCNdp-0006kH-Ge; Fri, 24 Oct 2025 15:40:04 -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 1vCNdo-0006jF-09 for qemu-arm@nongnu.org; Fri, 24 Oct 2025 15:40:00 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vCNdm-0002jK-0u for qemu-arm@nongnu.org; Fri, 24 Oct 2025 15:39:59 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-47109187c32so12226385e9.2 for ; Fri, 24 Oct 2025 12:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761334796; x=1761939596; 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=4FzH6bP8ELPeYTP6y896Uws7RnQ1srjQZb3yYWsL6TA=; b=vs3sD/SmtdeD9Xnty1aPNbmRcYbQWzC8qB/DKqTLow5PCacmGE9jv1x1lwZSjH9Lo5 S8kGRZlIKNJholuAZhfPyu+J5FOINlrDqrrZlA4+DbFGsWEZTPd0L3TA8HIUeSsmc2HR MbWCjUbXYW8KjUg+X25L+cTvIWMbHrh9mXtwyVsnqYbYR7JHUoEVeqX27IWXwbuvRWDP HF3+y9uVi/ztnzIg0l9ZHO10i78vPL8qnVFXay0PnSgKFQEge6GY6GFwNuixRdP+Qcfc vZCfyeA69UjZw1QuyeLPbltphnCmnwqdpE++2BuPBvIMD2mLKzIi50NZCusoTb6/Fv5I moJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761334796; x=1761939596; 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=4FzH6bP8ELPeYTP6y896Uws7RnQ1srjQZb3yYWsL6TA=; b=vZzmTDzijZcxmaqglw56AuLgv0MYse3n+lQ/8g78P0VnnoVDCUIHZ1hkIfV70REMdn JylhpRu6H9LTVNwjVlx5id2FAxk9CiuCEYXpw3IFckuwWjoa+9qVVC8zRrJ+2Kfkjn2W q5SXiWfvL/wI3RDLf96lLq2ysnvGTk4fSL2bdY4NMzsNj30LHUpdjZZzlQZyc0KNgaIO eAsWlxQ28yPnnl1JWtN7ILD8po6lZjwSL3xR2ycCPuaYw3YZoEsRzH28DOZFO3TE9tWi ubitRD/QCRP5bkAU/MJNhxdXO1k/lMLerBTj9T41Qcn/ryUAVZyD62xoiQH663HGNVM+ 0oSw== X-Gm-Message-State: AOJu0YyvgsVS5LnFaP3yEF5fv9mjo4WPcrNfYUsos/d7igFcuhvKkc0h tpUjZGzyQ1uhnCkTc7tvnwFV6nzMCJ7XGlOWQZZ0vbKOhInJgcMm0+S1ahfs7yEvUzo= X-Gm-Gg: ASbGncvXrFrXptZ5KPfm/dUoL9+ysEcta0Ev1BicuPU590nzZOZUpqp2yDOm1VVH7T6 0p+8CZgceK8sQGqXH0uVJZEdy3yrRIkoE8qJjIkA7Z8n/jisfFQSNAJayDHW9veZYT3WHufWbVn +LC5WhNY20yrMQlMu7Fwvvk/Csqu8sNv1YCM+h1KyCVM2fwlsyYRRhHWphIr1IJmLEPQhL3eJTt QioGAT7WDz+Koe5VJ8jlrv1r5rjGkbm6Cn72p5/Ntf4pZwp9bGXRQQwKN6qazBMmeMznjgFOXFe Nw64V8s5D4oEjqH+yrRVzpCSc3ZDE4oP/XUv9thRFAwy5hWpF9EaMRRgh0Qyz863fYIo1CiVo6A vCDhd7devcLtWtPgIb5uyCJkwbhnjJh+z+hBdDjLXg5LpE5LhkOdrg57aRkfnmCRaqx8/MPPbNa gDNsTwaWli1xqm8JymbVlV7WhNNNOgF4BsgrUiY3973+eC20sRunFgMxp64dLD X-Google-Smtp-Source: AGHT+IFkKcF2kN3btUwRTFmlvWK1OjhqWr1tuBBt4m2MdygZA5bFcoeTQb0Zn2LUOkdPsNXkJc+D+w== X-Received: by 2002:a05:6000:2406:b0:427:a27:3a6c with SMTP id ffacd0b85a97d-4270a273c43mr19858859f8f.63.1761334796188; Fri, 24 Oct 2025 12:39:56 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429952de971sm20312f8f.39.2025.10.24.12.39.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 24 Oct 2025 12:39:54 -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?= , "Edgar E. Iglesias" , Alistair Francis , Peter Maydell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , Jason Wang Subject: [PATCH 23/27] hw/xilinx: Include 'exec/cpu-common.h' and 'system/memory.h' headers Date: Fri, 24 Oct 2025 21:04:10 +0200 Message-ID: <20251024190416.8803-24-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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 "exec/cpu-common.h" and "system/memory.h" headers are indirectly pulled by "hw/sysbus.h". Include them explicitly to avoid when refactoring the latter: hw/ssi/xilinx_spi.c:88:5: error: unknown type name 'EndianMode' 88 | EndianMode model_endianness; | ^ hw/ssi/xilinx_spi.c:89:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion') 89 | MemoryRegion mmio; | ^ hw/timer/xilinx_timer.c:77:5: error: unknown type name 'EndianMode' 77 | EndianMode model_endianness; | ^ hw/timer/xilinx_timer.c:78:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion') 78 | MemoryRegion mmio; | ^ hw/char/xilinx_uartlite.c:61:5: error: unknown type name 'EndianMode' 61 | EndianMode model_endianness; | ^ hw/char/xilinx_uartlite.c:62:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion') 62 | MemoryRegion mmio; | ^ hw/intc/xilinx_intc.c:57:5: error: unknown type name 'EndianMode' 57 | EndianMode model_endianness; | ^ hw/intc/xilinx_intc.c:58:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion') 58 | MemoryRegion mmio; | ^ hw/net/xilinx_axienet.c:320:18: error: field has incomplete type 'MemoryRegion' (aka 'struct MemoryRegion') 320 | MemoryRegion iomem; | ^ hw/net/xilinx_axienet.c:645:19: error: use of undeclared identifier 'DEVICE_LITTLE_ENDIAN' 645 | .endianness = DEVICE_LITTLE_ENDIAN, | ^ Signed-off-by: Philippe Mathieu-Daudé --- hw/char/xilinx_uartlite.c | 2 ++ hw/intc/xilinx_intc.c | 2 ++ hw/net/xilinx_axienet.c | 2 ++ hw/ssi/xilinx_spi.c | 2 ++ hw/timer/xilinx_timer.c | 2 ++ 5 files changed, 10 insertions(+) diff --git a/hw/char/xilinx_uartlite.c b/hw/char/xilinx_uartlite.c index 8008171eea9..94f5bc22a1c 100644 --- a/hw/char/xilinx_uartlite.c +++ b/hw/char/xilinx_uartlite.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "qapi/error.h" +#include "qapi/qapi-types-common.h" #include "hw/char/xilinx_uartlite.h" #include "hw/irq.h" #include "hw/qdev-properties.h" @@ -33,6 +34,7 @@ #include "qemu/module.h" #include "chardev/char-fe.h" #include "qom/object.h" +#include "system/memory.h" #define DUART(x) diff --git a/hw/intc/xilinx_intc.c b/hw/intc/xilinx_intc.c index 5257ad54b17..5aa85ada5f8 100644 --- a/hw/intc/xilinx_intc.c +++ b/hw/intc/xilinx_intc.c @@ -27,12 +27,14 @@ #include "qemu/osdep.h" #include "qapi/error.h" +#include "qapi/qapi-types-common.h" #include "hw/sysbus.h" #include "qemu/module.h" #include "hw/irq.h" #include "hw/qdev-properties.h" #include "hw/qdev-properties-system.h" #include "qom/object.h" +#include "system/memory.h" #define D(x) diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index 1f5c7480476..f4f2571c228 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -31,10 +31,12 @@ #include "net/net.h" #include "net/checksum.h" +#include "exec/cpu-common.h" #include "hw/irq.h" #include "hw/qdev-properties.h" #include "hw/stream.h" #include "qom/object.h" +#include "system/memory.h" #define DPHY(x) diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c index 4144c8a6270..6039a654c3d 100644 --- a/hw/ssi/xilinx_spi.c +++ b/hw/ssi/xilinx_spi.c @@ -26,6 +26,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" +#include "qapi/qapi-types-common.h" #include "hw/sysbus.h" #include "migration/vmstate.h" #include "qemu/module.h" @@ -36,6 +37,7 @@ #include "hw/qdev-properties-system.h" #include "hw/ssi/ssi.h" #include "qom/object.h" +#include "system/memory.h" #ifdef XILINX_SPI_ERR_DEBUG #define DB_PRINT(...) do { \ diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c index ff4a224d08f..51658ee2bd9 100644 --- a/hw/timer/xilinx_timer.c +++ b/hw/timer/xilinx_timer.c @@ -27,6 +27,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" +#include "qapi/qapi-types-common.h" #include "hw/sysbus.h" #include "hw/irq.h" #include "hw/ptimer.h" @@ -35,6 +36,7 @@ #include "qemu/log.h" #include "qemu/module.h" #include "qom/object.h" +#include "system/memory.h" #define D(x) -- 2.51.0