From nobody Mon Oct 27 14:11:16 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=1761334835; cv=none; d=zohomail.com; s=zohoarc; b=IviH3TL/yt6EskOu+Td3SSbUSehCjSa9kgZvTJ3bN62ejH8Fmr87lVdkZS7WgVnw9wVDhGeRf9ZTunU65MUhIr58CylFd73H/Alt2q6NNGcli+Y+GLZpSIFMtSD+SEg1fcvvrhV+OJ2iNzstRhLy9BBxiAsYvyfznTMjFOTE/P4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761334835; 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=4FzH6bP8ELPeYTP6y896Uws7RnQ1srjQZb3yYWsL6TA=; b=aMvxt+2eDDNFiujdCVEsSB3/Ov1ku2BX9sAw6SKQWHUsaKxI1LgBI1Ea1ZQIUATCnrbV2/6Pl8NBFQGWpWV1TLhbCmzs5itIbo/dRSnJBJMSowrtshvFeHvQsvZpdfM3Xh1U5eeJjJVFu2IP/tbZUN5zLuIUk4Bifplsq4GJC5o= 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 1761334835671991.4815123106899; Fri, 24 Oct 2025 12:40:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vCNe7-0006rq-7m; Fri, 24 Oct 2025 15:40:19 -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 1vCNdp-0006kI-M7 for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:40:04 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vCNdm-0002jS-DJ for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:40:01 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4711b95226dso27423755e9.0 for ; Fri, 24 Oct 2025 12:39:58 -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) 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=fcf1d1uGLUiNG9579vIS4RMF2yvKruVUbk79mOhNto61yY2cTnB5NXPEqX5Rw+Suwz wjGXp1/tVv9JCUUuWsNtIp/EZFQO/HIH3LeRBot+SvmgPIcnPXHaE4sSLPSPYOdGW5Mp 9nCXa/JXjqiJV8g/juZPO5hne2YC7G5IJI59MNlCPsWK2eabqVnFg7GFiKMO9/TrPRT2 BISEuhQhg52VrQ0zkY1t9ngtwkL/8vmRuOmWCmo+Y74bSU1DEJLaq3bfzTIbdBKgwXlj vthNs9rtHb8aO66UPeU3M8CHPYhNZK+GN2PLioZrvwamTTYfPmuivQuaweo+mXeIdX59 WMkQ== X-Gm-Message-State: AOJu0YwCsnwN52/7y1j5ZnCHHT1c9xTMuEHSzzNidVcN3+brwB0SNrxc pquYgWfYo1TZhMekR6JEiD+/sYLwc2yBBffcBrIg/w2894dUenPUrW+jCns4FSLOmQNGANg9TtM tb8SCCII= X-Gm-Gg: ASbGncue61UX9cAAErtJ9m9eMo+qNQrwRV2YeRiKsagBqil65tUT0yH2U4Et7lWQQyz BRd6CswTVDZuwAwDQP4iXYp+1EsBwxFvrjqlzm4IGflpQZ4WNfIVtwSpCDLaciAIvGCndmXXsKK tnA5v4RRme9CvIdCJ9TV6JE+hP3pBUQ0V7PC36RQKF9a8SHpnrWSDOKLDF6vOP9hP8bup9de7K4 BecfGq198Z9bvQAo+b9o1kNWcKFF43TsHyAt6vsZzpHvJ6d2q4TJa+d9x/zGgEKnyK8UonVz65r Y4/io+ZVszeu33Bz6FxQQrSow9zUnHHKJPy9iv9VNYb7qngKIPV6qopM+BXnkA6by+lE8f145Yh OmDHDdfMZBMaxubLA6+3fsZ2waq5CFoQvVBzEPCgCpMo/ajRMJlmcJyu8CtUOYg+9kdKwO2k5PK qxq+Lj73ArpPLsc22WuFwIJXrDBQeVtlmNiLlkFVU9LPKAG71FXy8afxVPgKXk 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) 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: 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::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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: 1761334837310158500 "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 'MemoryRe= gion' (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 'Memory= Region' (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 'MemoryRegi= on' (aka 'struct MemoryRegion') 58 | MemoryRegion mmio; | ^ hw/net/xilinx_axienet.c:320:18: error: field has incomplete type 'MemoryR= egion' (aka 'struct MemoryRegion') 320 | MemoryRegion iomem; | ^ hw/net/xilinx_axienet.c:645:19: error: use of undeclared identifier 'DEVI= CE_LITTLE_ENDIAN' 645 | .endianness =3D DEVICE_LITTLE_ENDIAN, | ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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" =20 #define DUART(x) =20 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 @@ =20 #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" =20 #define D(x) =20 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" =20 +#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" =20 #define DPHY(x) =20 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 @@ =20 #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" =20 #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 @@ =20 #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" =20 #define D(x) =20 --=20 2.51.0