[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard
From: |
Peter Maydell |
Subject: |
[Qemu-arm] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard |
Date: |
Tue, 20 Feb 2018 18:03:16 +0000 |
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>
---
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
--
2.16.1
- [Qemu-arm] [PATCH 00/19] Add Cortex-M33 and mps2-an505 board model, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 11/19] qdev: Add new qdev_init_gpio_in_named_with_opaque(), Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 13/19] hw/misc/mps2-fpgaio: FPGA control block for MPS2 AN505, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 12/19] hw/core/split-irq: Device that splits IRQ lines, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard,
Peter Maydell <=
- [Qemu-arm] [PATCH 09/19] hw/misc/unimp: Move struct to header file, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 17/19] hw/misc/iotkit-secctl: Add remaining simple registers, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 14/19] hw/misc/tz-ppc: Model TrustZone peripheral protection controller, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 01/19] loader: Add new load_ramdisk_as(), Peter Maydell, 2018/02/20