diff mbox series

[v4,3/7] dump: Correct headers included

Message ID 20230223231755.81633-4-philmd@linaro.org
State New
Headers show
Series dump: Make most of it target agnostic (build once) | expand

Commit Message

Philippe Mathieu-Daudé Feb. 23, 2023, 11:17 p.m. UTC
"qemu/win_dump_defs.h" is only required by win_dump.c,
but win_dump.h requires "sysemu/dump.h" which declares
the DumpState type.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 dump/win_dump.c | 1 +
 dump/win_dump.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Richard Henderson Feb. 23, 2023, 11:32 p.m. UTC | #1
On 2/23/23 13:17, Philippe Mathieu-Daudé wrote:
> "qemu/win_dump_defs.h" is only required by win_dump.c,
> but win_dump.h requires "sysemu/dump.h" which declares
> the DumpState type.
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   dump/win_dump.c | 1 +
>   dump/win_dump.h | 2 +-
>   2 files changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
Thomas Huth Feb. 24, 2023, 7:02 a.m. UTC | #2
On 24/02/2023 00.17, Philippe Mathieu-Daudé wrote:
> "qemu/win_dump_defs.h" is only required by win_dump.c,
> but win_dump.h requires "sysemu/dump.h" which declares
> the DumpState type.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   dump/win_dump.c | 1 +
>   dump/win_dump.h | 2 +-
>   2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/dump/win_dump.c b/dump/win_dump.c
> index f20b6051b6..12b7da5da0 100644
> --- a/dump/win_dump.c
> +++ b/dump/win_dump.c
> @@ -21,6 +21,7 @@
>   #include "qapi/qmp/qerror.h"
>   #include "qemu/error-report.h"
>   #include "hw/misc/vmcoreinfo.h"
> +#include "qemu/win_dump_defs.h"
>   #include "win_dump.h"
>   
>   static size_t win_dump_ptr_size(bool x64)
> diff --git a/dump/win_dump.h b/dump/win_dump.h
> index b8c25348f4..56f63683c3 100644
> --- a/dump/win_dump.h
> +++ b/dump/win_dump.h
> @@ -11,7 +11,7 @@
>   #ifndef WIN_DUMP_H
>   #define WIN_DUMP_H
>   
> -#include "qemu/win_dump_defs.h"
> +#include "sysemu/dump.h"
>   
>   void create_win_dump(DumpState *s, Error **errp);
>   

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/dump/win_dump.c b/dump/win_dump.c
index f20b6051b6..12b7da5da0 100644
--- a/dump/win_dump.c
+++ b/dump/win_dump.c
@@ -21,6 +21,7 @@ 
 #include "qapi/qmp/qerror.h"
 #include "qemu/error-report.h"
 #include "hw/misc/vmcoreinfo.h"
+#include "qemu/win_dump_defs.h"
 #include "win_dump.h"
 
 static size_t win_dump_ptr_size(bool x64)
diff --git a/dump/win_dump.h b/dump/win_dump.h
index b8c25348f4..56f63683c3 100644
--- a/dump/win_dump.h
+++ b/dump/win_dump.h
@@ -11,7 +11,7 @@ 
 #ifndef WIN_DUMP_H
 #define WIN_DUMP_H
 
-#include "qemu/win_dump_defs.h"
+#include "sysemu/dump.h"
 
 void create_win_dump(DumpState *s, Error **errp);