All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Adam Williamson <awilliam@redhat.com>
Cc: qemu-devel@nongnu.org,  Paul Durrant <paul@xen.org>,
	xen-devel@lists.xenproject.org,
	 Stefano Stabellini <sstabellini@kernel.org>,
	 "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	Anthony PERARD <anthony@xenproject.org>
Subject: Re: [PATCH] xen/passthrough: add missing error-report include
Date: Fri, 18 Jul 2025 07:11:18 +0200	[thread overview]
Message-ID: <87v7nqgk21.fsf@pond.sub.org> (raw)
In-Reply-To: <20250717220207.171040-1-awilliam@redhat.com> (Adam Williamson's message of "Thu, 17 Jul 2025 15:02:07 -0700")

Adam Williamson <awilliam@redhat.com> writes:

> In cfcacba an `error_report` was added to this file, but the
> corresponding include of `qemu/error-report.h` was missed. This
> only becomes apparent when building against Xen 4.20+.
>
> Signed-off-by: Adam Williamson <awilliam@redhat.com>
> ---
>  hw/xen/xen_pt.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
> index 9d16644d82..006b5b55f2 100644
> --- a/hw/xen/xen_pt.c
> +++ b/hw/xen/xen_pt.c
> @@ -54,6 +54,7 @@
>  
>  #include "qemu/osdep.h"
>  #include "qapi/error.h"
> +#include "qemu/error-report.h"
>  #include <sys/ioctl.h>
>  
>  #include "hw/pci/pci.h"

Uh, error-report.h is included without this for me.  To see, build with
-H:

. /work/armbru/qemu/hw/xen/xen_pt.h
.. /work/armbru/qemu/include/hw/xen/xen_native.h
... /work/armbru/qemu/hw/xen/trace.h
.... ./trace/trace-hw_xen.h
..... /work/armbru/qemu/include/qemu/error-report.h

Code smell: header in include/... includes header from hw/.  Not this
patch's concern.



  reply	other threads:[~2025-07-18  5:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-17 22:02 [PATCH] xen/passthrough: add missing error-report include Adam Williamson
2025-07-18  5:11 ` Markus Armbruster [this message]
2025-07-18  5:59   ` Markus Armbruster
2025-07-18  8:45     ` Daniel P. Berrangé
2025-07-18 13:20       ` Markus Armbruster
2025-07-21 19:12         ` Daniel P. Berrangé
2025-07-18  6:05   ` Philippe Mathieu-Daudé
2025-07-18  6:21     ` Philippe Mathieu-Daudé
2025-07-27 14:04 ` Bernhard Beschow
2025-07-28 22:03 ` Philippe Mathieu-Daudé

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=87v7nqgk21.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=anthony@xenproject.org \
    --cc=awilliam@redhat.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=paul@xen.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.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.