[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/19] include/hw/or-irq.h: Add missing include
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard |
Date: |
Tue, 20 Feb 2018 15:25:20 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 02/20/2018 03:03 PM, Peter Maydell wrote:
> The or-irq.h header file is missing the customary guard against
> multiple inclusion, which means compilation fails if it gets
> included twice. Fix the omission.
>
> Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> include/hw/or-irq.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/hw/or-irq.h b/include/hw/or-irq.h
> index fd900fcf19..3f6fc1b58a 100644
> --- a/include/hw/or-irq.h
> +++ b/include/hw/or-irq.h
> @@ -22,6 +22,9 @@
> * THE SOFTWARE.
> */
>
> +#ifndef HW_OR_IRQ_H
> +#define HW_OR_IRQ_H
> +
> #include "hw/irq.h"
> #include "hw/sysbus.h"
> #include "qom/object.h"
> @@ -41,3 +44,5 @@ struct OrIRQState {
> bool levels[MAX_OR_LINES];
> uint16_t num_lines;
> };
> +
> +#endif
>
- [Qemu-devel] [PATCH 00/19] Add Cortex-M33 and mps2-an505 board model, Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 11/19] qdev: Add new qdev_init_gpio_in_named_with_opaque(), Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard, Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 09/19] hw/misc/unimp: Move struct to header file, Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 08/19] target/arm: Add Cortex-M33, Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 01/19] loader: Add new load_ramdisk_as(), Peter Maydell, 2018/02/20
- [Qemu-devel] [PATCH 17/19] hw/misc/iotkit-secctl: Add remaining simple registers, Peter Maydell, 2018/02/20