]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
stubdom: fix tpm_version
authorOlaf Hering <olaf@aepfle.de>
Thu, 14 Jan 2021 12:03:23 +0000 (13:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 14 Jan 2021 12:03:23 +0000 (13:03 +0100)
It is just a declaration, not a variable.

ld: /home/abuild/rpmbuild/BUILD/xen-4.14.20200616T103126.3625b04991/non-dbg/stubdom/vtpmmgr/vtpmmgr.a(vtpm_cmd_handler.o):(.bss+0x0): multiple definition of `tpm_version'; /home/abuild/rpmbuild/BUILD/xen-4.14.20200616T103126.3625b04991/non-dbg/stubdom/vtpmmgr/vtpmmgr.a(vtpmmgr.o):(.bss+0x0): first defined here

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
stubdom/vtpmmgr/vtpmmgr.h

index 2e6f8de9e4354586c60791132215970b5c2f917c..f40ca9fd6793db7cf1a39cc1d096e8d0a74cd2f5 100644 (file)
@@ -53,7 +53,7 @@
 enum {
     TPM1_HARDWARE = 1,
     TPM2_HARDWARE,
-} tpm_version;
+};
 
 struct tpm_hardware_version {
     int hw_version;