diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-12-13 13:35:49 +0100 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-12-21 14:17:55 -0300 |
commit | 46d80a56a151e229670ddfc5c996c8d68efac920 (patch) | |
tree | 2405b67b4f9fed9b98c8f5d58d79a99a28cafcbf /hw/ppc/spapr.c | |
parent | 31b55f5bdadc74e980e76a932aace79444ab4e2f (diff) | |
download | qemu-46d80a56a151e229670ddfc5c996c8d68efac920.zip qemu-46d80a56a151e229670ddfc5c996c8d68efac920.tar.gz qemu-46d80a56a151e229670ddfc5c996c8d68efac920.tar.bz2 |
hw/ppc/spapr: Reduce "vof.h" inclusion
Currently objects including "hw/ppc/spapr.h" are forced to be
target specific due to the inclusion of "vof.h" in "spapr.h".
"spapr.h" only uses a Vof pointer, so doesn't require the structure
declaration. The only place where Vof structure is accessed is in
spapr.c, so include "vof.h" there, and forward declare the structure
in "spapr.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221213123550.39302-4-philmd@linaro.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r-- | hw/ppc/spapr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index dc85003..59641ad 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -62,6 +62,7 @@ #include "hw/ppc/fdt.h" #include "hw/ppc/spapr.h" #include "hw/ppc/spapr_vio.h" +#include "hw/ppc/vof.h" #include "hw/qdev-properties.h" #include "hw/pci-host/spapr.h" #include "hw/pci/msi.h" |