All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM.
@ 2017-10-19  7:50 ` Richard W.M. Jones
  0 siblings, 0 replies; 10+ 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] 10+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.