From patchwork Wed May 7 20:44:01 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: 888088 Delivered-To: patch@linaro.org Received: by 2002:a5d:4683:0:b0:38f:210b:807b with SMTP id u3csp576631wrq; Wed, 7 May 2025 13:45:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW7uwM6wAiIyAWCh3NT3FWMT8NMw2gYOOi/HlPYlztwtOybw7j3a++7z9hs1Fmy4v4T7nTknw==@linaro.org X-Google-Smtp-Source: AGHT+IEJNGPfQ44fNGcNiUSRDTy4yovwedTzXXpEVstWJIy/joJDlqreKTO8NleSbJ8Mp+aYyh0U X-Received: by 2002:a05:622a:314:b0:47f:d11:5b4d with SMTP id d75a77b69052e-49227e430aemr62311931cf.49.1746650748010; Wed, 07 May 2025 13:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746650747; cv=none; d=google.com; s=arc-20240605; b=Bz6Eob8dr/8YsIYmtW0tkBTo807tKR5oq1zF1CG3acDybZmUegoxIbllWziVIIgbTR ufYLlCFvvs9XIBRtq8tWzvOOnTmVLWNll3asrdaikVyFc0/epIhD0Rrc6cvrV+MOXwrz SssUyF1b5RYzkNnAduynms92rneIA+JIexp+saAx6Aj48pOKHQ9pH9aPAaaTX0DcM2Kg eeEOO5EwWlrxaJY/8yKB1D2BXZpthltZAeUKwOBMSgPhHUHK/obyxs4mIhUvy6MIoVGK 1is4HXFOGno6o71B+U/n+LQw/gb65FneEaPJuXMDSmM9RFtA2yYC+nBDlxmFHIqhFcAl lzwQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=MGKhtEtKmIv/iqo3Q0C370p+aaMvKjOJBkZGTD/hQ3I=; fh=GwkjrYXjIuaHuu2oK+PcZsxPHGuL4k0h5dTon47/vPU=; b=bXKjhP5ZjS2S5fHoQAZ8PdpqYUGEZXwkrfpav8VtdZJsMgmuTRc7Msjar26eYAPiHE BNyOX9TMWnJ9K/GUcUz19H0bFEdjjGuizwIEmumL4q3TNzPnClNZGKFANPrL+H68gt4c ntucSMt8KdQQymqAlH1GQw5vduOkKdGthOO1bNYr7K+MWrYzd6kqZt0tayUE3NI5wAxJ 0NVfyB70V0STEPPE2UW1w4DXkVViQYNQThk9huLX8b6m6PwEHgNgHk73ClIQg+plgVma pkFxiY5NsoCAIQcYXg8IDj/Lxk1HBBpw4KSHIM5V+Y6ktE+kkksALLJIgyHvMlm1fvWY KOGQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CwfPyzeD; 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 d75a77b69052e-49220f82fd8si29206501cf.32.2025.05.07.13.45.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 May 2025 13:45:47 -0700 (PDT) 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=CwfPyzeD; 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 1uClcp-00030y-Hm; Wed, 07 May 2025 16:44: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 1uClcn-0002yY-Aw for qemu-devel@nongnu.org; Wed, 07 May 2025 16:44:17 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uClcj-0002ms-MT for qemu-devel@nongnu.org; Wed, 07 May 2025 16:44:17 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-22e7eff58a0so3445805ad.3 for ; Wed, 07 May 2025 13:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746650651; x=1747255451; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MGKhtEtKmIv/iqo3Q0C370p+aaMvKjOJBkZGTD/hQ3I=; b=CwfPyzeDpKPb/SapfzhWcYuOZH+wqDkyCPa1tKCJGvoO/T//OCUK2q3lna8CMcQdJQ GneB4z1dS2Em3dBdx+EbITnfH4spL/iIITsFnvnQFsWYXSdvgTbHKzIyis589hJqGwiX rKW+270B5tfie8wmbqpYszibYVb0yfiRgwxqZhTAA/BYrU0XquTEbBH8yU+56Kq8Mewk Jso6ew6z5BysvjpOVbACyVZcwVm1WgUF0ZylcLzDykWmBoTQafEECFd89Nc2HTC50gHl DwUrVMrV/XIXSdIgD1QPVMnw/VOZY4RPoEnMpUkP06fWi4WfdAShNcoy9VGPR4LyaDgS Lsyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746650651; x=1747255451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MGKhtEtKmIv/iqo3Q0C370p+aaMvKjOJBkZGTD/hQ3I=; b=IHc5fURXgbr0c98blXMbfODKoousmkWxpOUFhAeHfVYjz6byptHHDrVubjFZw4K/Du rB3nER0rHy5yGTY7DUM4G/JBHEW7sLjsUWiWBrwY2CRsVF6GTXLc+4s6tqCLYKN4OnuT VQsY0bPHVu6DN3yr/WYJUgCX3qRo8gxsQsXClEC5qWbUBETwzUbTugLxIKCei1CMsP7r 8XpZtU54zexVUr9R6nzCCX9+Yd+ecWgHI4uO7SX9gmVhNSjRhPSZTR32BQ2oJ9l7/RnE YbLtLCYekUCAyiOTol2BB38YNuTS6v00/7e7qmClfHsG5/zd7d+M/T3HBntyFZ8DiseK Z9gQ== X-Gm-Message-State: AOJu0YzlvB606IF1L05NA9opu/wOCLLYXtUYwr/uaKc3sOI5yHPoXG84 SgjqUp7lpzNkwm+0e6VJeSHo5mEhBXmStwdfNxHhD0EyaskjFXsSeY0SvzoofOTr8c2q9hx4j3/ ny+DUIA== X-Gm-Gg: ASbGncu6dkZiQbSfzhX7aXvzuuk+S72UJXC+lNz3fSi9s6/LA+2DTkf6TQo0RJiM/Rq dBB8e8ZP5503sPDU8BuZLnTo1fWRP2Hj/5bpaUQzHNzWuDDeChiZr4LWaWToJUDXJCG9uPFFutK u924RAsU2vNthzOadS8Y5/xKy7TI6YrcQTeiiTv8vfEsc8VgM9NMCoAto0hbhjeDb+1MpfEoAD+ r6U3GzbzyBw3jf+GDPqtRrKbb9fvhlFihDuEhKsjBKDfoDx0E++ScXPeDOtYEFMO2guyXZw2r4M 35h5dic9aP5n/vkfdNYKjHmfJ2Sb4gzL30IJu5p11/4LFIQtJvuPBDN7fdHjE5NHVqtqN0+Te31 YlqVIfn8m2kz2bItMiekF X-Received: by 2002:a17:903:1a45:b0:220:f151:b668 with SMTP id d9443c01a7336-22e5ea8a5c2mr61177045ad.20.1746650651320; Wed, 07 May 2025 13:44:11 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e1522a7e0sm98817315ad.208.2025.05.07.13.44.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 May 2025 13:44:10 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Cameron Esfahani , Phil Dennis-Jordan , qemu-arm@nongnu.org, Pierrick Bouvier , Alexander Graf , Roman Bolshakov , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Mads Ynddal , Stefan Hajnoczi Subject: [PATCH] accel/hvf: Include missing 'hw/core/cpu.h' header Date: Wed, 7 May 2025 22:44:01 +0200 Message-ID: <20250507204401.45379-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=philmd@linaro.org; helo=mail-pl1-x632.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 Since commit d5bd8d8267e ("hvf: only update sysreg from owning thread") hvf-all.c accesses the run_on_cpu_data type and calls run_on_cpu(), both defined in the "hw/core/cpu.h" header. Fortunately, it is indirectly included via: "system/hvf.h" -> "target/arm/cpu.h" -> "target/arm/cpu-qom.h" -> "hw/core/cpu.h" "system/hvf.h" however doesn't need "target/arm/cpu.h" and we want to remove it there. In order to do that we first need to include it in the hvf-all.c file. Cc: Mads Ynddal Reported-by: Stefan Hajnoczi Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Mads Ynddal > --- accel/hvf/hvf-all.c | 1 + 1 file changed, 1 insertion(+) diff --git a/accel/hvf/hvf-all.c b/accel/hvf/hvf-all.c index 3fc65d6b231..8c387fda24d 100644 --- a/accel/hvf/hvf-all.c +++ b/accel/hvf/hvf-all.c @@ -12,6 +12,7 @@ #include "qemu/error-report.h" #include "system/hvf.h" #include "system/hvf_int.h" +#include "hw/core/cpu.h" const char *hvf_return_string(hv_return_t ret) {