From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4jmr-00004t-IB for qemu-devel@nongnu.org; Wed, 18 Oct 2017 04:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4jmq-00036w-Lb for qemu-devel@nongnu.org; Wed, 18 Oct 2017 04:33:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40858) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4jmq-00035r-FU for qemu-devel@nongnu.org; Wed, 18 Oct 2017 04:33:12 -0400 From: Juan Quintela Date: Wed, 18 Oct 2017 10:33:05 +0200 Message-Id: <20171018083305.5246-1-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] tpm: Fix compilation with --disable-tpm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: dgilbert@redhat.com, lvivier@redhat.com, peterx@redhat.com, Amarnath Valluri Commit c37cacabf2285b0731b44c1f667781fdd4f2b658 broke compilation without tpm. Just add an empty tpm_cleanup() stub. CC: Amarnath Valluri Signed-off-by: Juan Quintela --- tpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tpm.c b/tpm.c index 3122227156..9396bb669c 100644 --- a/tpm.c +++ b/tpm.c @@ -194,6 +194,12 @@ int tpm_config_parse(QemuOptsList *opts_list, const char *optarg) return 0; } +#else + +void tpm_cleanup(void) +{ +} + #endif /* CONFIG_TPM */ static const TPMDriverOps *tpm_driver_find_by_type(enum TpmType type) -- 2.13.6