tpm: Fix several compiler warnings (redefined data types)

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>
This commit is contained in:
Stefan Weil 2013-04-02 22:14:51 +02:00 committed by Anthony Liguori
parent eabb21aac9
commit 8243b0464b
2 changed files with 4 additions and 9 deletions

View File

@ -15,11 +15,8 @@
#include "exec/memory.h" #include "exec/memory.h"
#include "tpm/tpm_tis.h" #include "tpm/tpm_tis.h"
struct TPMDriverOps;
typedef struct TPMDriverOps TPMDriverOps;
/* overall state of the TPM interface */ /* overall state of the TPM interface */
typedef struct TPMState { struct TPMState {
ISADevice busdev; ISADevice busdev;
MemoryRegion mmio; MemoryRegion mmio;
@ -32,12 +29,10 @@ typedef struct TPMState {
char *backend; char *backend;
TPMBackend *be_driver; TPMBackend *be_driver;
} TPMState; };
#define TPM(obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS) #define TPM(obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS)
typedef void (TPMRecvDataCB)(TPMState *, uint8_t locty);
struct TPMDriverOps { struct TPMDriverOps {
enum TpmType type; enum TpmType type;
/* get a descriptive text of the backend to display to the user */ /* get a descriptive text of the backend to display to the user */

View File

@ -35,10 +35,10 @@
#define TYPE_TPM_TIS "tpm-tis" #define TYPE_TPM_TIS "tpm-tis"
typedef struct TPMSizedBuffer { struct TPMSizedBuffer {
uint32_t size; uint32_t size;
uint8_t *buffer; uint8_t *buffer;
} TPMSizedBuffer; };
typedef enum { typedef enum {
TPM_TIS_STATE_IDLE = 0, TPM_TIS_STATE_IDLE = 0,