Skip to content

Commit

Permalink
tpm: Fix several compiler warnings (redefined data types)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil authored and Anthony Liguori committed Apr 3, 2013
1 parent eabb21a commit 8243b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions tpm/tpm_int.h
Expand Up @@ -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;

Expand All @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions tpm/tpm_tis.h
Expand Up @@ -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,
Expand Down

0 comments on commit 8243b04

Please sign in to comment.