From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: Igor Mammedov <imammedo@redhat.com>, Ani Sinha <ani@anisinha.ca>,
Gerd Hoffmann <kraxel@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Miroslav Rezanina <mrezanin@redhat.com>,
Frederic Bezies <fredbezies@gmail.com>,
Laurent Vivier <lvivier@redhat.com>
Subject: Re: [PATCH-for-7.2] hw/display: Declare build_vga_aml() out of "vga_int.h"
Date: Wed, 9 Nov 2022 23:30:12 +0100 [thread overview]
Message-ID: <3f256e04-5f32-04e1-011b-bfd3f71a94f6@linaro.org> (raw)
In-Reply-To: <20221109222312.29347-1-philmd@linaro.org>
On 9/11/22 23:23, Philippe Mathieu-Daudé wrote:
> Commit cfead31326 declared build_vga_aml() in "vga_int.h".
> This header happens to include various other things, such
> (indirectly) pixman headers.
>
> The freshly introduced acpi-vga.c includes "vga_int.h" to
> get build_vga_aml() declaration, but ends including the
> 'various other things' triggering this build failure (QEMU
> configured as '--enable-modules --disable-spice'):
>
> In file included from /home/fred/qemu-git/src/qemu/include/ui/console.h:4,
> from ../hw/display/vga_int.h:30,
> from ../hw/display/acpi-vga.c:4:
> include/ui/qemu-pixman.h:12:10: fatal error: pixman.h: No such file or directory
> 12 | #include <pixman.h>
> | ^~~~~~~~~~
>
> Resolve by declaring build_vga_aml() in a ACPI/VGA specific
> header named "acpi-vga.h". Adjust MAINTAINERS to avoid
> checkpatch warnings.
>
> Reported-by: Miroslav Rezanina <mrezanin@redhat.com>
> Reported-by: Frederic Bezies <fredbezies@gmail.com>
> Reported-by: Laurent Vivier <lvivier@redhat.com>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1308
> Fixes: cfead31326 ("AcpiDevAmlIf interface to build VGA device descs")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> MAINTAINERS | 1 +
> hw/display/acpi-vga-stub.c | 2 +-
> hw/display/acpi-vga.c | 2 +-
> hw/display/acpi-vga.h | 10 ++++++++++
> hw/display/vga-pci.c | 1 +
> hw/display/vga_int.h | 2 --
> 6 files changed, 14 insertions(+), 4 deletions(-)
> create mode 100644 hw/display/acpi-vga.h
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index caba73ec41..af4d3bd8fd 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1844,6 +1844,7 @@ S: Supported
> F: include/hw/acpi/*
> F: include/hw/firmware/smbios.h
> F: hw/acpi/*
> +F: hw/display/acpi*
> F: hw/smbios/*
> F: hw/i386/acpi-build.[hc]
> F: hw/arm/virt-acpi-build.c
Please discard in favor of
https://lore.kernel.org/qemu-devel/20221109222112.74519-1-mst@redhat.com/
Note, the MAINTAINERS part is worth salvaging.
prev parent reply other threads:[~2022-11-09 22:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 22:23 [PATCH-for-7.2] hw/display: Declare build_vga_aml() out of "vga_int.h" Philippe Mathieu-Daudé
2022-11-09 22:30 ` Philippe Mathieu-Daudé [this message]
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=3f256e04-5f32-04e1-011b-bfd3f71a94f6@linaro.org \
--to=philmd@linaro.org \
--cc=ani@anisinha.ca \
--cc=fredbezies@gmail.com \
--cc=imammedo@redhat.com \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=mrezanin@redhat.com \
--cc=mst@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 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).