From patchwork Mon Feb 10 20:42:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 863853 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1793204wrt; Mon, 10 Feb 2025 12:49:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVLfq08oNBQjtVj/NhPA8ghnZ1laujWHR+wRpt/aTFBiB/tJbfGFOGa7avWcX2YP77yZx0ofQ==@linaro.org X-Google-Smtp-Source: AGHT+IGY2Gud5mx2peUG00cD/hdJxedo1kWGARWFn5gBr/ikZX2VFiV8mZ9horl3r44DZIJP2Es2 X-Received: by 2002:a05:620a:4310:b0:7b6:fc3a:f9a9 with SMTP id af79cd13be357-7c047c74da0mr2990241685a.36.1739220559744; Mon, 10 Feb 2025 12:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739220559; cv=none; d=google.com; s=arc-20240605; b=EOuAuEfLZfnGKqq6slqsQzmyLX36IMJJM0ByddYt1rU7JL6i9mXkQNz3OI0y0O8FaC UVUw4B6yqQd8Z10IuDwcH8oTtPQiin6Fx7NCR1vArS3T7rhyJBKyKf0SVaKeXw8+FL2v iahcl8YSOZCyJbVcn8f/gdUzo9rSMG/SfdfgEPeA6vH9hSxHKx2n1Wom8Yx6ZgIg4YDW V0MFbT/njqZf3ZTH+vv7/aKlNQ33h5qRJDGLeQtX1MVP1wS+uoANGBMGVEJiuQMpq8ZQ OmqBb4aY4GyVBOAsZ1SgHmgmIOXYc+oF5Rjgmn5TBPvogiuZCtQW5q9Nwi1MAccZ4kS3 ZXDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5HB87qrSZIjcYG5MXK7Optq3v+lGh0m2fxrQ9mcJz4c=; fh=zm9GEwd9Zm8pGstmzedGfamov8flIGVi52cG9DQ5Sz0=; b=dD97LBY6kS3CyE4EF/4TD/9Duo5+wlQiWWp6rfOOk28+FnaVYlsyk7mlypRgCwLdBY hgdt6BiNWrpeNrYMvRL3vf6rOP7XaeJBDpFsNlPdtG8CVrORQf02p84543NE/AoVYa0V SWpD7AQpwjDMPePG5Z6eQLfFb/LfFh/s09k+38KOuHusM9YGYhZiYzCQkGbMXIPMDDHt JHfk+KOcOyH5koOH2UMwTxcPhkP9tmBgXPhnPcX/LCJWGaYnro8yN8oqydfamTpZ790k Zo6riqOKVr61qUGH8uFCaBKbet+KxaQETkObrfkWNH61eKj3QtyVbfiiX520fub9xTh4 2Zug==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CF1eMWSd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c05e48a030si275214985a.312.2025.02.10.12.49.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Feb 2025 12:49:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CF1eMWSd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1thaeK-0006ED-Tc; Mon, 10 Feb 2025 15:45:01 -0500 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 1thaeB-000591-DO for qemu-devel@nongnu.org; Mon, 10 Feb 2025 15:44:51 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1thae6-00043E-Km for qemu-devel@nongnu.org; Mon, 10 Feb 2025 15:44:51 -0500 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-38dc962f1b9so2058169f8f.3 for ; Mon, 10 Feb 2025 12:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739220285; x=1739825085; 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=5HB87qrSZIjcYG5MXK7Optq3v+lGh0m2fxrQ9mcJz4c=; b=CF1eMWSdzLuu40Cp8Pw/DSz1ybXy0lCNFcd0dYk0c9WEJ8A0Enf6e4tQfyF7KL7KQM FK7acsb/so/wSRQTrN1wq6+dsFIt3AxNtt1xLAV0cwwT+EtTPavS9v/hhyO482n4zYWU gOD7iaEuU7jQikXmQcmhbksY9uBVeZJH9e3/NBlCbosu2ex7KRZPqtxGQrlJIfWesdSJ EmacdwXUcec6Ek3q2dxA/lGLKxu4K4bc6Bf4yhhpqwVf0HC6tcb8F7sj+0fbddySuxLF KhPlDVMC285rgjr+oYoVJR8xpHQNfxDSZJMknr7hLbn5jAxbsFbnIrigcjMQCjUCWn93 gBPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739220285; x=1739825085; 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=5HB87qrSZIjcYG5MXK7Optq3v+lGh0m2fxrQ9mcJz4c=; b=YDXek8HDFMH0yTM9SOwlvL4BeM7KpJBs3+PxfyNyNsdDW/M30tT56Suo7Q/ri4yoIi DSEqQTNTKG/iOTWF4d9ieN6kFnsBxMi9OJbELnawKsVKcsFBJROZJ/r3VHmOwb3LfYkE 34gFSM4Qg2XoVW3svnXGJDGCO5FGP2wXCuBP1BD08UrxMqmOwe7IUGT/VgX3VQKPitfJ /zfNnY7cG2+LgDF28YGDUcIP6v1C8wEdky/bb+I6bGCk6cy8wJHckl2FYPz7f2Os6fVj 4g1ipymRT+BT2YXxiyAs4SUr8doKkaXD4Wkkaighr6gSRbmIpxAseUWfMBlMR4W9dKbY RDMA== X-Gm-Message-State: AOJu0Yy1qPupe9L5Gg3VF6Hoz27xSF6ns76RRlCkBIdxObvDAFCe7tY5 IO+HtFKta9wpdV/2GUbxKIDbKnrGnKHaQSGxRs+zoQHlQ8a13AhRw2RltqTn0cninubTlVuNzOl 8Axw= X-Gm-Gg: ASbGnctrQsZXDCqNACYLH+uQ+9vE2aJdzOGjlh8N87PkyHztL7PuM9AFQfAgEgIcBKD mRtk6BcU6cV85wsuxLzzf8vgf9Z3KEJSTkeQkihT7Ynr+4iGmwsCbS+hHRjLT6WPK75XyPhlrU+ Nla1ajZxWe+jKcj5YzWyNtJEo8nPu5NMEzu6W/5UIQJFncsdguQl++2IY2ZoGwt6nKqxX4kXb09 mEfhNU9/EoRFxMiN19b6Hk4nRuH1aW5KTVfFkxnBZiKsWSxl2LBsXv+XYRQhviMs6Xxlsjaxomp ZdQxy6QQsTjzWKljne6JXAlB/VY+hpBlrtqmYQd0gupyTvtrRAb5f8cm5X/Gs3WLgg== X-Received: by 2002:a5d:59a4:0:b0:38d:e15e:17e8 with SMTP id ffacd0b85a97d-38de15e1b60mr3404901f8f.1.1739220284735; Mon, 10 Feb 2025 12:44:44 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dd2ef7efesm8175812f8f.52.2025.02.10.12.44.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Feb 2025 12:44:44 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis Subject: [PULL 31/32] hw/riscv/opentitan: Include missing 'exec/address-spaces.h' header Date: Mon, 10 Feb 2025 21:42:03 +0100 Message-ID: <20250210204204.54407-32-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250210204204.54407-1-philmd@linaro.org> References: <20250210204204.54407-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org opentitan_machine_init() calls get_system_memory(), which is declared in "exec/address-spaces.h". Include it in order to avoid when refactoring unrelated headers: hw/riscv/opentitan.c:83:29: error: call to undeclared function 'get_system_memory' 83 | MemoryRegion *sys_mem = get_system_memory(); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Message-Id: <20250206181827.41557-4-philmd@linaro.org> --- hw/riscv/opentitan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index b9e56235d87..98a67fe52a8 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -28,6 +28,7 @@ #include "hw/riscv/boot.h" #include "qemu/units.h" #include "system/system.h" +#include "exec/address-spaces.h" /* * This version of the OpenTitan machine currently supports