From nobody Tue Oct 28 21:08:56 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513599498862637.3359030885869; Mon, 18 Dec 2017 04:18:18 -0800 (PST) Received: from localhost ([::1]:58194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQuMn-0007Av-88 for importer@patchew.org; Mon, 18 Dec 2017 07:17:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQuLf-0006aX-MR for qemu-devel@nongnu.org; Mon, 18 Dec 2017 07:16:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQuLb-0007pe-NO for qemu-devel@nongnu.org; Mon, 18 Dec 2017 07:16:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34138) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQuLb-0007mq-H9 for qemu-devel@nongnu.org; Mon, 18 Dec 2017 07:16:43 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9F215F7B5; Mon, 18 Dec 2017 12:16:41 +0000 (UTC) Received: from localhost (ovpn-117-51.ams2.redhat.com [10.36.117.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 773AA7F490; Mon, 18 Dec 2017 12:16:39 +0000 (UTC) From: Cornelia Huck To: stefanb@linux.vnet.ibm.com, pbonzini@redhat.com Date: Mon, 18 Dec 2017 13:16:35 +0100 Message-Id: <20171218121635.25494-1-cohuck@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 18 Dec 2017 12:16:41 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] tpm: add stubs for qdev-prop-tpm X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, thuth@redhat.com, Cornelia Huck , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Building with --disable-tpm yields ../hw/core/qdev-properties-system.o: In function `set_tpm': /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:274: undefined refer= ence to `qemu_find_tpm_be' /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:278: undefined refer= ence to `tpm_backend_init' ../hw/core/qdev-properties-system.o: In function `release_tpm': /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:291: undefined refer= ence to `tpm_backend_reset' Add some proper stubs for those functions. Fixes: 493b78303532 ("qdev: add DEFINE_PROP_TPMBE") Reported-by: Thomas Huth Signed-off-by: Cornelia Huck --- stubs/tpm.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/stubs/tpm.c b/stubs/tpm.c index c18aac1c73..97457e0646 100644 --- a/stubs/tpm.c +++ b/stubs/tpm.c @@ -7,6 +7,7 @@ #include "qemu/osdep.h" #include "sysemu/tpm.h" #include "qmp-commands.h" +#include "sysemu/tpm_backend.h" =20 int tpm_init(void) { @@ -31,3 +32,17 @@ TpmModelList *qmp_query_tpm_models(Error **errp) { return NULL; } + +TPMBackend *qemu_find_tpm_be(const char *id) +{ + return NULL; +} + +int tpm_backend_init(TPMBackend *s, TPMIf *tpmif, Error **errp) +{ + return -1; +} + +void tpm_backend_reset(TPMBackend *s) +{ +} --=20 2.13.6