All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé via" <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org
Cc: "Cédric Le Goater" <clg@kaod.org>,
	"Daniel Henrique Barboza" <danielhb413@gmail.com>,
	"Greg Kurz" <groug@kaod.org>,
	qemu-ppc@nongnu.org, "David Gibson" <david@gibson.dropbear.id.au>,
	"Alexey Kardashevskiy" <aik@ozlabs.ru>,
	qemu-trivial@nongnu.org
Subject: Re: [PATCH] hw/ppc/vof: Add missing includes
Date: Sun, 30 Jan 2022 20:38:38 +0100	[thread overview]
Message-ID: <cac5809d-87d0-28dc-8681-e2b8c92a9534@amsat.org> (raw)
In-Reply-To: <20220122003104.84391-1-f4bug@amsat.org>

Cc'ing qemu-trivial@

On 22/1/22 01:31, Philippe Mathieu-Daudé wrote:
> vof.h requires "qom/object.h" for DECLARE_CLASS_CHECKERS(),
> "exec/memory.h" for address_space_read/write(),
> "exec/address-spaces.h" for address_space_memory
> and more importantly "cpu.h" for target_ulong.
> 
> vof.c doesn't need "exec/ram_addr.h".
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>   hw/ppc/vof.c         | 1 -
>   include/hw/ppc/vof.h | 5 +++++
>   2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c
> index 73adc44ec2..2b63a62875 100644
> --- a/hw/ppc/vof.c
> +++ b/hw/ppc/vof.c
> @@ -16,7 +16,6 @@
>   #include "qemu/units.h"
>   #include "qemu/log.h"
>   #include "qapi/error.h"
> -#include "exec/ram_addr.h"
>   #include "exec/address-spaces.h"
>   #include "hw/ppc/vof.h"
>   #include "hw/ppc/fdt.h"
> diff --git a/include/hw/ppc/vof.h b/include/hw/ppc/vof.h
> index 97fdef758b..f8c0effcaf 100644
> --- a/include/hw/ppc/vof.h
> +++ b/include/hw/ppc/vof.h
> @@ -6,6 +6,11 @@
>   #ifndef HW_VOF_H
>   #define HW_VOF_H
>   
> +#include "qom/object.h"
> +#include "exec/address-spaces.h"
> +#include "exec/memory.h"
> +#include "cpu.h"
> +
>   typedef struct Vof {
>       uint64_t top_addr; /* copied from rma_size */
>       GArray *claimed; /* array of SpaprOfClaimed */



  reply	other threads:[~2022-01-30 19:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22  0:31 [PATCH] hw/ppc/vof: Add missing includes Philippe Mathieu-Daudé via
2022-01-30 19:38 ` Philippe Mathieu-Daudé via [this message]
2022-01-31  7:45   ` Cédric Le Goater
2022-01-31 13:43     ` Philippe Mathieu-Daudé via

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=cac5809d-87d0-28dc-8681-e2b8c92a9534@amsat.org \
    --to=qemu-devel@nongnu.org \
    --cc=aik@ozlabs.ru \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=f4bug@amsat.org \
    --cc=groug@kaod.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-trivial@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.