diff mbox series

[RFC,1/3] hw/intc: Add missing include for goldfish_pic.h

Message ID 20221124212916.723490-2-jiaxun.yang@flygoat.com (mailing list archive)
State New, archived
Headers show
Series MIPS VirtIO Machine | expand

Commit Message

Jiaxun Yang Nov. 24, 2022, 9:29 p.m. UTC
hw/sysbus.h is missed in goldfish_pic.h.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 include/hw/intc/goldfish_pic.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Philippe Mathieu-Daudé Nov. 25, 2022, 1:28 p.m. UTC | #1
On 24/11/22 22:29, Jiaxun Yang wrote:
> hw/sysbus.h is missed in goldfish_pic.h.
> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>   include/hw/intc/goldfish_pic.h | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/include/hw/intc/goldfish_pic.h b/include/hw/intc/goldfish_pic.h
> index e9d552f796..3e79580367 100644
> --- a/include/hw/intc/goldfish_pic.h
> +++ b/include/hw/intc/goldfish_pic.h
> @@ -10,6 +10,8 @@
>   #ifndef HW_INTC_GOLDFISH_PIC_H
>   #define HW_INTC_GOLDFISH_PIC_H

Also:

    #include "qom/object.h"
    #include "exec/memory.h"

> +#include "hw/sysbus.h"
> +
>   #define TYPE_GOLDFISH_PIC "goldfish_pic"
>   OBJECT_DECLARE_SIMPLE_TYPE(GoldfishPICState, GOLDFISH_PIC)
>
diff mbox series

Patch

diff --git a/include/hw/intc/goldfish_pic.h b/include/hw/intc/goldfish_pic.h
index e9d552f796..3e79580367 100644
--- a/include/hw/intc/goldfish_pic.h
+++ b/include/hw/intc/goldfish_pic.h
@@ -10,6 +10,8 @@ 
 #ifndef HW_INTC_GOLDFISH_PIC_H
 #define HW_INTC_GOLDFISH_PIC_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_GOLDFISH_PIC "goldfish_pic"
 OBJECT_DECLARE_SIMPLE_TYPE(GoldfishPICState, GOLDFISH_PIC)