From nobody Fri Apr 4 21:10: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=1739797641; cv=none; d=zohomail.com; s=zohoarc; b=ZAsMvSnlgA8Ht8XxlTuqYJYCOl9uJeAuZRcGFCs+cVHLlQ0XQ0/6cVFZq8VzLPogPkEJQe2WvuQ5cT35T0qbwymsz7PZtROfVZMzsGsuhlzxMDtAM08hZHpOzofIGNSjcOR1Cqn+CNR4GtVcDJYa7MC7P27LiKWvpZMi925nZBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1739797641; 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=7QzO70em+SWmM19nvv4jHPXxR+fFgMfgrFERsTk++Jo=; b=mtcCqALMAhv8sxveclIczmEW7Ejloz8Kjb4n4Fx3A8vJB2cOS+SBI+hel+CNg0PomTuPyet1ER5Mzg4Vxg0N6VdKI1Eoiaxhnmto16h7mDh4w2jiyx4G0Zi0rYUYbP5fAk1cz33g2eOS8NFzL34fK5c6R2AMbqGWPEm0KSSlXFw= 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 1739797641187506.7277908621553; Mon, 17 Feb 2025 05:07:21 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tk0pe-00026M-PS; Mon, 17 Feb 2025 08:06:42 -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 1tk0pd-00026D-Eu for qemu-devel@nongnu.org; Mon, 17 Feb 2025 08:06:41 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tk0pb-0004lP-Hp for qemu-devel@nongnu.org; Mon, 17 Feb 2025 08:06:40 -0500 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2fbfc9ff0b9so6551349a91.2 for ; Mon, 17 Feb 2025 05:06:39 -0800 (PST) Received: from localhost.localdomain ([176.167.144.216]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d545d046sm71339195ad.114.2025.02.17.05.06.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 17 Feb 2025 05:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739797598; x=1740402398; 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=7QzO70em+SWmM19nvv4jHPXxR+fFgMfgrFERsTk++Jo=; b=blhRGow/TedrWfYyj72BanNkbT2YeBSCdgqS/ABl1MAdOB46ROClz2asbAzsXB0mKC eunIBGf7EEDUFCmn8WmWKQdy20WqG4XUgBimSFD+ShIVaCvPotD2/UfpWBuv/X3cESCG L6XeuD79tlW9Di6+WfOg6UOoyZYJKjABc6E1G5up8+Q87WkBjV1VlMId2E6+uJRoYuLj 3M3aF5j3GoynDq0ClpYaX/dRQlM0E51RivGW1Bfxt0Vnmhitzyf5QA2a/12a79fwsBcS nxnI+KndgJTpXTNNzc6vJNRFcCMvENexoeXv3O3Ga4WEK5iLfb9d/VlNmwyYrHylyCLw WgNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739797598; x=1740402398; 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=7QzO70em+SWmM19nvv4jHPXxR+fFgMfgrFERsTk++Jo=; b=d88/dsUrBhfbXKyLX7fXENrzKNcd96+jKa0ob32NrQBFWV7d+cb03K98Qlkmmmob9W U8Fv4FpntPfvYH7jHYE0wdOa0AVILOXxGcsE0WpMcXLYuzdRu6Cfkq0xnLP0StcAbO8f DLHWbBsbcG8UawD3sx5PFS0Vj1eOd4i9WRodifr3jh0NdDcg2aE60OjpcZLAkppXqEMr DQ0VeXByP9EuKhaSGb4ehhDOlv91mpKQy2jPcq15z5O3wuk5lo3cZykpm6ER+G5xw/5X so/LRVArwCmmFuY8gYhHji+x5CQQKA3vKRYTs4DEsWdrm63PWW4/5ipQU+diMnhWQBJk GjSQ== X-Gm-Message-State: AOJu0Yzb7Z0zu00pHqovWWjoh3rswXHzzHnwpyiD0/WKYCq/siH1EQaE 7rERbeZQmGMuiabZx/DNdiGeYfJFSo0+I0eQ97x3cYzsu3i7Y+IqUubNZb25SoslztwVNvv2x+7 xlM8= X-Gm-Gg: ASbGncuClzU96+kUUJo7+nRZ1VLQazbwzfuTXzAhSjxkyybXT6Sqiz9Zv4yauPRvK5i /OunEZyqhC73JhKM6aI2L15IpHM5jFeml0MaKFeLUwvjfBGTLZN8dfAumG9qyYL5iqH+2ttzOSt O/6Dx9dcFFlEgP3WY6EMVI1glS4gVbMyFUDYn73PWJHUwxKJUqXQYI+3VKsJpvTpZ6Cd1JPv1xG DlgkBe5GXNiGINWfTSL0SR1etheBVfaja0oS8PClXnI4sRvrIMk1suUnyfP2K8yMa0PWcSOEakO ARQUMVWXJ1lvoOauCe3PgoCDJc1V27jgpkJn6CExGzY= X-Google-Smtp-Source: AGHT+IH1xk4zg8VHhAQG551UBjtC6HiXPMunJlDfERBcimEi0uX3yk7W6k0vljHaGv2t/Wt26CcGVA== X-Received: by 2002:a17:90b:4c0c:b0:2f6:d266:f45e with SMTP id 98e67ed59e1d1-2fc40d14fcemr14940725a91.2.1739797597690; Mon, 17 Feb 2025 05:06:37 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Riku Voipio , Richard Henderson , Pierrick Bouvier , Paolo Bonzini , Anton Johansson , Ilya Leoshkevich , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/5] accel/accel-cpu-target.h: Include missing 'cpu.h' header Date: Mon, 17 Feb 2025 14:06:06 +0100 Message-ID: <20250217130610.18313-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250217130610.18313-1-philmd@linaro.org> References: <20250217130610.18313-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=2607:f8b0:4864:20::102c; envelope-from=philmd@linaro.org; helo=mail-pj1-x102c.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: 1739797643306019000 CPU_RESOLVING_TYPE is declared per target in "cpu.h". Include it (along with "qom/object.h") to avoid when moving code around: include/accel/accel-cpu-target.h:26:50: error: expected ')' 26 | DECLARE_CLASS_CHECKERS(AccelCPUClass, ACCEL_CPU, TYPE_ACCEL_CPU) | ^ include/accel/accel-cpu-target.h:23:33: note: expanded from macro 'TYPE_A= CCEL_CPU' 23 | #define TYPE_ACCEL_CPU "accel-" CPU_RESOLVING_TYPE | ^ include/accel/accel-cpu-target.h:26:1: note: to match this '(' 26 | DECLARE_CLASS_CHECKERS(AccelCPUClass, ACCEL_CPU, TYPE_ACCEL_CPU) | ^ include/qom/object.h:196:14: note: expanded from macro 'DECLARE_CLASS_CHE= CKERS' 196 | { return OBJECT_GET_CLASS(ClassType, obj, TYPENAME); } \ | ^ include/qom/object.h:558:5: note: expanded from macro 'OBJECT_GET_CLASS' 558 | OBJECT_CLASS_CHECK(class, object_get_class(OBJECT(obj)), name) | ^ include/qom/object.h:544:74: note: expanded from macro 'OBJECT_CLASS_CHEC= K' 544 | ((class_type *)object_class_dynamic_cast_assert(OBJECT_CLASS(= class), (name), \ | = ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Richard Henderson Message-Id: <20250123234415.59850-13-philmd@linaro.org> --- include/accel/accel-cpu-target.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/accel/accel-cpu-target.h b/include/accel/accel-cpu-tar= get.h index 0a8e518600d..37dde7fae3e 100644 --- a/include/accel/accel-cpu-target.h +++ b/include/accel/accel-cpu-target.h @@ -20,6 +20,9 @@ * subclasses in target/, or the accel implementation itself in accel/ */ =20 +#include "qom/object.h" +#include "cpu.h" + #define TYPE_ACCEL_CPU "accel-" CPU_RESOLVING_TYPE #define ACCEL_CPU_NAME(name) (name "-" TYPE_ACCEL_CPU) typedef struct AccelCPUClass AccelCPUClass; --=20 2.47.1