[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/26] hw/usb: Reduce 'exec/memory.h' inclusion
From: |
Alistair Francis |
Subject: |
Re: [PATCH 04/26] hw/usb: Reduce 'exec/memory.h' inclusion |
Date: |
Mon, 6 Jul 2020 09:52:26 -0700 |
On Sat, Jul 4, 2020 at 7:52 AM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> "exec/memory.h" is only required by "hw/usb/hcd-musb.h".
> Include it there directly.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> include/hw/usb.h | 1 -
> include/hw/usb/hcd-musb.h | 2 ++
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/hw/usb.h b/include/hw/usb.h
> index 4f04a1a879..15b2ef300a 100644
> --- a/include/hw/usb.h
> +++ b/include/hw/usb.h
> @@ -25,7 +25,6 @@
> * THE SOFTWARE.
> */
>
> -#include "exec/memory.h"
> #include "hw/qdev-core.h"
> #include "qemu/iov.h"
> #include "qemu/queue.h"
> diff --git a/include/hw/usb/hcd-musb.h b/include/hw/usb/hcd-musb.h
> index c874b9f292..ec3ee5c4b0 100644
> --- a/include/hw/usb/hcd-musb.h
> +++ b/include/hw/usb/hcd-musb.h
> @@ -13,6 +13,8 @@
> #ifndef HW_USB_MUSB_H
> #define HW_USB_MUSB_H
>
> +#include "exec/memory.h"
> +
> enum musb_irq_source_e {
> musb_irq_suspend = 0,
> musb_irq_resume,
> --
> 2.21.3
>
>
- [PATCH 00/26] hw/usb: Give it love, reduce 'hw/usb.h' inclusion out of hw/usb/, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 01/26] hw/arm/sbsa-ref: Remove unused 'hw/usb.h' header, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 02/26] hw/ppc/sam460ex: Add missing 'hw/pci/pci.h' header, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 03/26] hw/usb: Remove unused VM_USB_HUB_SIZE definition, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 04/26] hw/usb: Reduce 'exec/memory.h' inclusion, Philippe Mathieu-Daudé, 2020/07/04
- Re: [PATCH 04/26] hw/usb: Reduce 'exec/memory.h' inclusion,
Alistair Francis <=
- [PATCH 05/26] hw/usb/desc: Add missing header, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 06/26] hw/usb/hcd-dwc2: Remove unnecessary includes, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 07/26] hw/usb/hcd-dwc2: Restrict some headers to source, Philippe Mathieu-Daudé, 2020/07/04
- [PATCH 08/26] hw/usb/hcd-dwc2: Restrict 'dwc2-regs.h' scope, Philippe Mathieu-Daudé, 2020/07/04