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=1761334717; cv=none; d=zohomail.com; s=zohoarc; b=A75w3vpBUVQlJ4xz5hvS/9AqQHy6Q2KzdSOcdIeLK/jPSu5yZvlD3dgizA73tkLZ9HdXyNzobeXK6gWp5R9p/UIyrgLjs6a/hQsKs1b5uLLgWi6ZbDqNEpvXZN0Gc8m5Q4mnTVLZpi9xIgZw3nsvKhtOcYh85th1bUlICr019jU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761334717; 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=06EZMC4tBC7cPd7PMFGh3c+i0do87VDtuboi/W62pEQ=; b=eXFia+MDh/73bbUiXah3xElnSyZF7YMJnIy1D7Egg9hWRZkes04xW0+QWLZuDQBGtwgOPjZBiIQG/xXtDgUUj8L5nMNV8HLuD+UTcYGfTySBEMUFa+Gh5nSgpakn7rRy2aWxYG4faLhL98kyfJ+Lc4nWGdRk0PEpHmaFXD3OKvE= 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 1761334717344706.1178096976837; Fri, 24 Oct 2025 12:38:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vCNcK-0005em-T7; Fri, 24 Oct 2025 15:38:28 -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 1vCNcJ-0005dk-4K for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:38:27 -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 1vCNcH-0002Z0-BL for qemu-devel@nongnu.org; Fri, 24 Oct 2025 15:38:26 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-471191ac79dso25021795e9.3 for ; Fri, 24 Oct 2025 12:38:24 -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-475caf15416sm106478365e9.10.2025.10.24.12.38.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 24 Oct 2025 12:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761334703; x=1761939503; 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=06EZMC4tBC7cPd7PMFGh3c+i0do87VDtuboi/W62pEQ=; b=S382Zg6Z5oZGkpF4VHWNMPsVeraUoaY3aNoUJp4cGGmiwi+VwHAW6EajlkRggB6vg2 hBddnX5V/1e6rc2/G2iT9/9hKfmr4smO84vsOl4WJDOtYSNeNiwIqm8IXdwnxQObHi8W 0g9Fv47P3IYH0Hm9xE00XbwpLQZ8lQ7LXTdFgBVCN0mwWYKZMDNRrc9K67V1QYhyuOQS eTlOB0yf+orT7CcNaY1gGUPPtt4FEOuVbIOGX/1VEhvTB4rSw//0pPJ7OsA5TS5//O5P C1bTodCny0JSOVnf76tdNUXZ7QPQufD1+hgREmy/k+EUAX042K3a7KWYiDJRNricTwJb bzKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761334703; x=1761939503; 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=06EZMC4tBC7cPd7PMFGh3c+i0do87VDtuboi/W62pEQ=; b=Dk7Nb87ISWyiTO0oEcMyjLZSxkWJvKrt7Uf8icrg5UYqwU1DCEe+Qo4cxLFs3aL+rw iUoNNL5GEyskPtZEbIyqdkxVcGAvLj7EYQ9FRG52pBQYRieHIhjYso0qpCVoLOg6Ip66 UDq3WpsCk/QB4xu2CUNGIu++re1drBxS5TNfL/KcXdgsO2A3VPfRyGebdNXsr9NjXgeT Qup6i5W+riXqRI3AuMQcAVP5XK/iQIXeI30wIzzGUZ+3awKfSE6agnqsNSeHmwNOmjCX Oa3VgBviXpHQeMTzm/729Ie/ZX1YRWw9yGdhwyfobMyHFXctMyfrNR6KqesCVzrXZLvu YrBQ== X-Gm-Message-State: AOJu0YxK5upCjFk29PYn+BqNCmBrgkCVX3kAXzlVp1c6yL9yENEobeBK 7ookS7g+jpfNlMrl+WGpftG/wgQjI2nZD39X0RpOP8IOFYJbV9HkEwqZFYci/FPOI+4R4RBOmg7 /9DR4Nms= X-Gm-Gg: ASbGncuZIKKPK3luEIGrDvPapHZaFDjGQQxiQ/+Fk+QwGuEbLOQSX5VoJV0AFFkw0lR LrHDNWqgMxzJDYvrd5UOCvkipcK+qLj9iSxkqmAS1p2qNjq/hqiNOZumN09qRzECqiKYcn6UH1W m8m1JR6tEqxf2nePepTK0+U4hyBEhfea3CwG1OuvSHXEYy2yPJVKc94sCY3UEzQiVVsjSEitD3/ r8ZV0yaz8av+LdCKN4Or6mIm8PF0zlZZka9gi4h3ZO6R++t0Q/5SXv8Gst+BEYPz4gPIEdjD2fr B0LYt7E45Aa269Lq/AKhWUHVBO9js9mH6/LZt3ujrCl91c9F2I6VyXQnEFrFqO5fpYQkUfNb1NO UKm49CsWpBTEmZQ2OY1DLziKKGSD268cHVaEIae+gwyQReN0pjZyDQJpkk0wZ4VwbLP4WupxSRj wawwH/z2hY+n3RLCcByQxJER/6gse/p6n0kETfOBx+rd1vTJcaoe0EuPOF3yIe X-Google-Smtp-Source: AGHT+IHnrPLiRhL2oVl9b+Hfwoc72motDn5PtrgzGLhtUUifl/weU/eTWhEL2TRc1lzgyH1I/3ugzg== X-Received: by 2002:a05:600c:1ca0:b0:471:168f:717a with SMTP id 5b1f17b1804b1-475d2e84559mr32749575e9.16.1761334702984; Fri, 24 Oct 2025 12:38:22 -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?= , Artyom Tarasenko Subject: [PATCH 22/27] hw/rtc/sun: Include 'exec/cpu-common.h' and 'system/memory.h' headers Date: Fri, 24 Oct 2025 21:04:09 +0200 Message-ID: <20251024190416.8803-23-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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761334719544158501 "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/rtc/sun4v-rtc.c:28:18: error: field has incomplete type 'MemoryRegion'= (aka 'struct MemoryRegion') 28 | MemoryRegion iomem; | ^ hw/rtc/sun4v-rtc.c:52:19: error: use of undeclared identifier 'DEVICE_NAT= IVE_ENDIAN' 52 | .endianness =3D DEVICE_NATIVE_ENDIAN, | ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/rtc/sun4v-rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/rtc/sun4v-rtc.c b/hw/rtc/sun4v-rtc.c index 29e24ef6bed..c0859b270d3 100644 --- a/hw/rtc/sun4v-rtc.c +++ b/hw/rtc/sun4v-rtc.c @@ -17,6 +17,8 @@ #include "hw/rtc/sun4v-rtc.h" #include "trace.h" #include "qom/object.h" +#include "exec/cpu-common.h" +#include "system/memory.h" =20 =20 #define TYPE_SUN4V_RTC "sun4v_rtc" --=20 2.51.0