All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] qemu-timer.c: Trim list of included headers
Date: Tue, 20 Jan 2015 17:17:21 +0100	[thread overview]
Message-ID: <54BE7F91.5080305@redhat.com> (raw)
In-Reply-To: <1421770600-17525-1-git-send-email-peter.maydell@linaro.org>



On 20/01/2015 17:16, Peter Maydell wrote:
> qemu-timer.c was including a lot more headers than it needed to,
> presumably for historical reasons. In particular, it included
> ui/console.h; this now tries to pull in <pixman.h>, which will
> cause a compilation failure in --disable-tools --disable-system
> configurations when running "make check" (which builds qemu-timer.c,
> even though the linux-user binaries themselves don't need it).
> 
> Fix this build failure by trimming down the set of included
> headers severely -- we only really need main-loop.h and timer.h.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> I'm not sure exactly when this broke -- it's not a config I
> run as part of pullreq processing.
> 
>  qemu-timer.c | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> 
> diff --git a/qemu-timer.c b/qemu-timer.c
> index 98d9d1b..a77fb47 100644
> --- a/qemu-timer.c
> +++ b/qemu-timer.c
> @@ -22,13 +22,9 @@
>   * THE SOFTWARE.
>   */
>  
> -#include "sysemu/sysemu.h"
> -#include "monitor/monitor.h"
> -#include "ui/console.h"
> -
> -#include "hw/hw.h"
> -
> +#include "qemu/main-loop.h"
>  #include "qemu/timer.h"
> +
>  #ifdef CONFIG_POSIX
>  #include <pthread.h>
>  #endif
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

  reply	other threads:[~2015-01-20 16:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20 16:16 [Qemu-devel] [PATCH] qemu-timer.c: Trim list of included headers Peter Maydell
2015-01-20 16:17 ` Paolo Bonzini [this message]
2015-01-26 18:31   ` Peter Maydell

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=54BE7F91.5080305@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --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.