All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 08/12] tpm: reorganize headers and split hardware part
Date: Mon, 15 Apr 2013 18:19:48 +0200	[thread overview]
Message-ID: <516C28A4.7000800@redhat.com> (raw)
In-Reply-To: <1366031973-7718-9-git-send-email-pbonzini@redhat.com>

On 04/15/13 15:19, Paolo Bonzini wrote:

> diff --git a/include/backends/tpm.h b/include/backends/tpm.h
> index 9e93cc5..a96b110 100644
> --- a/include/backends/tpm.h
> +++ b/include/backends/tpm.h
> @@ -18,7 +18,7 @@
>  #include "qapi/error.h"
>  #include "qapi-types.h"
>  #include "qemu/option.h"
> -#include "tpm/tpm.h"
> +#include "sysemu/tpm.h"
>  
>  #define TYPE_TPM_BACKEND "tpm-backend"
>  #define TPM_BACKEND(obj) \
> @@ -30,6 +30,7 @@
>  
>  typedef struct TPMBackendClass TPMBackendClass;
>  typedef struct TPMBackend TPMBackend;
> +typedef struct TPMState TPMState;
>  
>  typedef struct TPMDriverOps TPMDriverOps;
>  

This breaks the build for me:

include/sysemu/tpm_backend.h:33: error: redefinition of typedef 'TPMState'
include/sysemu/tpm.h:17: note: previous declaration of 'TPMState' was here

The prev decl. is from 8f0605cc.

"include/sysemu/tpm.h" seems like a "more common" header, so suggesting
to drop the typedef from the backend. Anyway the x86_64 default config
build completes that way.

Thanks,
Laszlo

diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h
index a96b110..4667874 100644
--- a/include/sysemu/tpm_backend.h
+++ b/include/sysemu/tpm_backend.h
@@ -30,7 +30,6 @@

 typedef struct TPMBackendClass TPMBackendClass;
 typedef struct TPMBackend TPMBackend;
-typedef struct TPMState TPMState;

 typedef struct TPMDriverOps TPMDriverOps;

  reply	other threads:[~2013-04-15 16:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 13:19 [Qemu-devel] [PULL 00/12] directory reorganization, fixes and final part Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 01/12] arm: fix location of some include files Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 02/12] Add linux-headers to QEMU_INCLUDES Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 03/12] Fix failure to create q35 machine Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 04/12] hw: Add lost ARM core again Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 05/12] acpi: move declarations from pc.h to acpi.h Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 06/12] acpi.h: make it self contained Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 07/12] configure: fix TPM logic Paolo Bonzini
2013-04-15 16:02   ` Laszlo Ersek
2013-04-15 16:09   ` Peter Maydell
2013-04-15 16:14     ` Paolo Bonzini
2013-04-15 16:21       ` Peter Maydell
2013-04-16  8:28   ` Markus Armbruster
2013-04-16  8:42     ` Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 08/12] tpm: reorganize headers and split hardware part Paolo Bonzini
2013-04-15 16:19   ` Laszlo Ersek [this message]
2013-04-15 13:19 ` [Qemu-devel] [PATCH 09/12] sysemu: avoid proliferation of include/ subdirectories Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 10/12] include: avoid useless includes of exec/ headers Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 11/12] memory: move core typedefs to qemu/typedefs.h Paolo Bonzini
2013-04-15 13:19 ` [Qemu-devel] [PATCH 12/12] exec: remove useless declarations from memory-internal.h Paolo Bonzini
2013-04-15 16:20 ` [Qemu-devel] [PULL 00/12] directory reorganization, fixes and final part Paolo Bonzini
2013-04-15 21:10 ` 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=516C28A4.7000800@redhat.com \
    --to=lersek@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.