From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] tpm: Fix several compiler warnings (redefined data types)
Date: Wed, 03 Apr 2013 06:39:16 -0400 [thread overview]
Message-ID: <515C06D4.9060104@linux.vnet.ibm.com> (raw)
In-Reply-To: <1364933691-21197-1-git-send-email-sw@weilnetz.de>
On 04/02/2013 04:14 PM, Stefan Weil wrote:
What compiler and options did you use?
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
> ---
> tpm/tpm_int.h | 9 ++-------
> tpm/tpm_tis.h | 4 ++--
> 2 files changed, 4 insertions(+), 9 deletions(-)
>
> diff --git a/tpm/tpm_int.h b/tpm/tpm_int.h
> index b4787ad..340bfd5 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 0c8df80..7f216e5 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,
next prev parent reply other threads:[~2013-04-03 10:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 20:14 [Qemu-devel] [PATCH] tpm: Fix several compiler warnings (redefined data types) Stefan Weil
2013-04-03 10:39 ` Stefan Berger [this message]
2013-04-03 19:52 ` Stefan Weil
2013-04-05 12:51 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=515C06D4.9060104@linux.vnet.ibm.com \
--to=stefanb@linux.vnet.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).