From 8243b0464b247ff460178a15f1fe306ef9c70b49 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 2 Apr 2013 22:14:51 +0200 Subject: tpm: Fix several compiler warnings (redefined data types) Signed-off-by: Stefan Weil Message-id: 1364933691-21197-1-git-send-email-sw@weilnetz.de Signed-off-by: Anthony Liguori --- tpm/tpm_int.h | 9 ++------- tpm/tpm_tis.h | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'tpm') diff --git a/tpm/tpm_int.h b/tpm/tpm_int.h index b4787ad27f..340bfd52f1 100644 --- a/tpm/tpm_int.h +++ b/tpm/tpm_int.h @@ -15,11 +15,8 @@ #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 */ diff --git a/tpm/tpm_tis.h b/tpm/tpm_tis.h index 0c8df80cce..7f216e56b2 100644 --- a/tpm/tpm_tis.h +++ b/tpm/tpm_tis.h @@ -35,10 +35,10 @@ #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, -- cgit v1.2.1