qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM.
@ 2017-10-19  7:50 Richard W.M. Jones
  2017-10-19 14:06 ` Stefan Berger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2017-10-19  7:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, amarnath.valluri, pbonzini, marcandre.lureau,
	stefanb

When compiling with --disable-tpm:

  ../vl.o: In function `main':
  /home/rjones/d/qemu/vl.c:4908: undefined reference to `tpm_cleanup'

This appears to have been introduced in commit c37cacabf228
("tpm: Move tpm_cleanup() to right place").

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vl.c b/vl.c
index 0723835bbf..dbfd06d4bc 100644
--- a/vl.c
+++ b/vl.c
@@ -4905,7 +4905,9 @@ int main(int argc, char **argv, char **envp)
     res_free();
 
     /* vhost-user must be cleaned up before chardevs.  */
+#ifdef CONFIG_TPM
     tpm_cleanup();
+#endif
     net_cleanup();
     audio_cleanup();
     monitor_cleanup();
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-06 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19  7:50 [Qemu-devel] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM Richard W.M. Jones
2017-10-19 14:06 ` Stefan Berger
2017-10-23 21:03 ` Richard W.M. Jones
2017-11-06 17:49 ` Michael Tokarev
2017-11-06 17:52   ` Stefan Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).