From patchwork Tue Mar 11 18:13:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 872475 Delivered-To: patch@linaro.org Received: by 2002:a5d:64ce:0:b0:38f:210b:807b with SMTP id f14csp1622634wri; Tue, 11 Mar 2025 11:19:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX6tgm+X2Pnk7JAmiN3F5RbdzeC/BTiyDPHXdgl6UgWrdaA4s5HiAH4GcQaMOiJjFbuqo1ncQ==@linaro.org X-Google-Smtp-Source: AGHT+IEhn1fZsCb+Ddqe8q0PdxG6NRVF9/4EdiyWQd7odCRh13JV/TN7hPNteb80ENqVj/F1xUo1 X-Received: by 2002:a05:6122:489c:b0:523:e4c6:dddb with SMTP id 71dfb90a1353d-52419478380mr3864556e0c.0.1741717182453; Tue, 11 Mar 2025 11:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741717182; cv=none; d=google.com; s=arc-20240605; b=SEA3IENH09DhZZ5gcCH0uUd1+8SBXv2ndpd2jojqRUUeTTAl0yh4VlMUsF+mG7Opev eFR9ukajyNqrazeR50O/DE3tURBzAd2vOXvZG1iACh5Plt9EoRMes5nGhUW33qo+f93v QtZ1X5zHXCYMa/eAbqmL9ZOIHwfheMteBValhgeKXQniXvbFaTR/iWKwVK9UOTk8GcGZ iXMMv/z8Y2mdtg6K5mm00a0RLWOq+d5pyOy+p+3LobO9v5/uqUp2pKmp/1HHmI8Sl2hD aYqoYJMm1Mwaipd8PVac8zj9vcl+Y81+osEoygVnJDQ1ZqtI3/qJE62er5Y4WF/oGFZ7 UVIQ== 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=H5rfZS1ab2cIdaT1TSzN/mupwEkTEP1TSyKx5VpLfAA=; fh=skPag3eb/PHum7UM2+Nk02fn39KWwqZx8YsEy/fWPkc=; b=LXOlY5gk7HHNjqypDbXWNUVAltYaaO7MdJfi7JUp4Tk9qqud2ckqJGW4kzYZfur01L 3bt7s4IRgp9uVtBEQs0NjD1C3Y6hpWhHkjCeoPVI+zJQRuDVy6Qc5yvRNpwYkwCQ8pze iKExQ3CQiPPBEZkkXweNo8GqwD0b4giBbXhqgWoqysxqIMFZTCo4kTua9aqBqtvR94/m 9EZDrefkJaKQ7lRDXGsWi0YGl0EjZfYigDKWoLJKPonqIw+hjDP7mL6YrcpKVRuQtD/B 2C91EvrrV1n9aNmbIHYW5nESzO99QXWJha7xNxFpx25BkqlyXFunOjF4UQZ8qe7bn1SV rRTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NInL9ny6; 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a1e0cc1a2514c-86d33bc1db2si2523645241.3.2025.03.11.11.19.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Mar 2025 11:19:42 -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=@redhat.com header.s=mimecast20190719 header.b=NInL9ny6; 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=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ts49x-000245-5d; Tue, 11 Mar 2025 14:17:01 -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 1ts47a-0007Bg-Ub for qemu-devel@nongnu.org; Tue, 11 Mar 2025 14:14:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ts47N-0006lC-PP for qemu-devel@nongnu.org; Tue, 11 Mar 2025 14:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741716854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H5rfZS1ab2cIdaT1TSzN/mupwEkTEP1TSyKx5VpLfAA=; b=NInL9ny6NuLn0xVJZSXhXkqJ3INCXCnPL3w/b9Gd01OAJ8pkvUt/K/M7YwvSw6HlbseSc0 C8yqwG0qFG6qVXWRY+nGsO5jeMKGWie4LHBJ84/43eUCGoGy/By0qKYMKKYFNWT9jODa/Y 0zCcXXfmVXZFpNN8hJCJDqxeYnLJ1N4= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-638-HjOOvlf5Nb2KkLDRXM6i9w-1; Tue, 11 Mar 2025 14:14:11 -0400 X-MC-Unique: HjOOvlf5Nb2KkLDRXM6i9w-1 X-Mimecast-MFC-AGG-ID: HjOOvlf5Nb2KkLDRXM6i9w_1741716850 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 564A21956080; Tue, 11 Mar 2025 18:14:10 +0000 (UTC) Received: from corto.redhat.com (unknown [10.44.32.116]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F05A818001E9; Tue, 11 Mar 2025 18:14:07 +0000 (UTC) From: =?utf-8?q?C=C3=A9dric_Le_Goater?= To: qemu-devel@nongnu.org Cc: Alex Williamson , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Pierrick Bouvier , Richard Henderson , =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , Eric Auger Subject: [PULL 14/21] hw/vfio/common: Include missing 'system/tcg.h' header Date: Tue, 11 Mar 2025 19:13:21 +0100 Message-ID: <20250311181328.1200431-15-clg@redhat.com> In-Reply-To: <20250311181328.1200431-1-clg@redhat.com> References: <20250311181328.1200431-1-clg@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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 From: Philippe Mathieu-Daudé Always include necessary headers explicitly, to avoid when refactoring unrelated ones: hw/vfio/common.c:1176:45: error: implicit declaration of function ‘tcg_enabled’; 1176 | tcg_enabled() ? DIRTY_CLIENTS_ALL : | ^~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Eric Auger Message-Id: <20250307180337.14811-2-philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20250311085743.21724-4-philmd@linaro.org Signed-off-by: Cédric Le Goater --- hw/vfio/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 7a4010ef4ee6a10bc1f9f2f8e1b12c60362a575c..b1596b6bf647e9e3c5f4701e61ddd9323d49e880 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -42,6 +42,7 @@ #include "migration/misc.h" #include "migration/blocker.h" #include "migration/qemu-file.h" +#include "system/tcg.h" #include "system/tpm.h" VFIODeviceList vfio_device_list =