]> git.proxmox.com Git - qemu.git/commitdiff
tpm: Fix several compiler warnings (redefined data types)
authorStefan Weil <sw@weilnetz.de>
Tue, 2 Apr 2013 20:14:51 +0000 (22:14 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 3 Apr 2013 20:06:03 +0000 (15:06 -0500)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1364933691-21197-1-git-send-email-sw@weilnetz.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tpm/tpm_int.h
tpm/tpm_tis.h

index b4787ad27f08af09f4e3110414a4aa7a1198d29f..340bfd52f1498e01f5f2e9eee1a1e8df9a8250f6 100644 (file)
 #include "exec/memory.h"
 #include "tpm/tpm_tis.h"
 
-struct TPMDriverOps;
-typedef struct TPMDriverOps TPMDriverOps;
-
 /* overall state of the TPM interface */
-typedef struct TPMState {
+struct TPMState {
     ISADevice busdev;
     MemoryRegion mmio;
 
@@ -32,12 +29,10 @@ typedef struct TPMState {
 
     char *backend;
     TPMBackend *be_driver;
-} TPMState;
+};
 
 #define TPM(obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS)
 
-typedef void (TPMRecvDataCB)(TPMState *, uint8_t locty);
-
 struct TPMDriverOps {
     enum TpmType type;
     /* get a descriptive text of the backend to display to the user */
index 0c8df80cce6d57e122a73be8e8a48f34432040b8..7f216e56b2128b909a95a69bca5a4220cdb12482 100644 (file)
 #define TYPE_TPM_TIS                "tpm-tis"
 
 
-typedef struct TPMSizedBuffer {
+struct TPMSizedBuffer {
     uint32_t size;
     uint8_t  *buffer;
-} TPMSizedBuffer;
+};
 
 typedef enum {
     TPM_TIS_STATE_IDLE = 0,