Skip to content

Commit

Permalink
Clean up decorations and whitespace around header guards
Browse files Browse the repository at this point in the history
Cleaned up with scripts/clean-header-guards.pl.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
  • Loading branch information
Markus Armbruster committed Jul 12, 2016
1 parent 2a6a407 commit 175de52
Show file tree
Hide file tree
Showing 111 changed files with 140 additions and 126 deletions.
3 changes: 2 additions & 1 deletion audio/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef QEMU_AUDIO_H
#define QEMU_AUDIO_H

Expand Down Expand Up @@ -162,4 +163,4 @@ static inline void *advance (void *p, int incr)
int wav_start_capture (CaptureState *s, const char *path, int freq,
int bits, int nchannels);

#endif /* audio.h */
#endif /* QEMU_AUDIO_H */
3 changes: 2 additions & 1 deletion audio/audio_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef QEMU_AUDIO_INT_H
#define QEMU_AUDIO_INT_H

Expand Down Expand Up @@ -257,4 +258,4 @@ static inline int audio_ring_dist (int dst, int src, int len)
#define AUDIO_FUNC __FILE__ ":" AUDIO_STRINGIFY (__LINE__)
#endif

#endif /* audio_int.h */
#endif /* QEMU_AUDIO_INT_H */
2 changes: 1 addition & 1 deletion audio/audio_pt_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ int audio_pt_wait (struct audio_pt *, const char *);
int audio_pt_unlock_and_signal (struct audio_pt *, const char *);
int audio_pt_join (struct audio_pt *, void **, const char *);

#endif /* audio_pt_int.h */
#endif /* QEMU_AUDIO_PT_INT_H */
3 changes: 2 additions & 1 deletion audio/mixeng.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef QEMU_MIXENG_H
#define QEMU_MIXENG_H

Expand Down Expand Up @@ -48,4 +49,4 @@ void st_rate_stop (void *opaque);
void mixeng_clear (struct st_sample *buf, int len);
void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol);

#endif /* mixeng.h */
#endif /* QEMU_MIXENG_H */
2 changes: 1 addition & 1 deletion bsd-user/i386/target_syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ struct target_vm86plus_struct {

#define UNAME_MACHINE "i386"

#endif /* TARGET_SYSCALL_H */
#endif /* TARGET_SYSCALL_H */
2 changes: 1 addition & 1 deletion bsd-user/sparc/target_syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ struct target_pt_regs {

#define UNAME_MACHINE "sun4"

#endif /* TARGET_SYSCALL_H */
#endif /* TARGET_SYSCALL_H */
2 changes: 1 addition & 1 deletion bsd-user/sparc64/target_syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ struct target_pt_regs {

#define UNAME_MACHINE "sun4u"

#endif /* TARGET_SYSCALL_H */
#endif /* TARGET_SYSCALL_H */
2 changes: 1 addition & 1 deletion bsd-user/x86_64/target_syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ struct target_msqid64_ds {
#define TARGET_ARCH_GET_FS 0x1003
#define TARGET_ARCH_GET_GS 0x1004

#endif /* TARGET_SYSCALL_H */
#endif /* TARGET_SYSCALL_H */
2 changes: 1 addition & 1 deletion hw/audio/gusemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ void gus_irqgen(GUSEmuState *state, unsigned int elapsed_time);
/* lower values won´t provide any benefit at all, higher values can cause audible timing delays */
/* note: masked timers are also calculated by this function, thus it might be needed even without any IRQs in use! */

#endif /* gusemu.h */
#endif /* GUSEMU_H */
2 changes: 1 addition & 1 deletion hw/audio/gustate.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@

#define gusdataend (VSRegsEnd+4)

#endif /* gustate.h */
#endif /* GUSTATE_H */
2 changes: 1 addition & 1 deletion hw/audio/lm4549.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ uint32_t lm4549_read(lm4549_state *s, hwaddr offset);
void lm4549_write(lm4549_state *s, hwaddr offset, uint32_t value);
uint32_t lm4549_write_samples(lm4549_state *s, uint32_t left, uint32_t right);

#endif /* #ifndef HW_LM4549_H */
#endif /* HW_LM4549_H */
2 changes: 1 addition & 1 deletion hw/audio/pl041.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ enum {
#define RXTOFEC3 (1 << 11)
#define RXTOFEC4 (1 << 12)

#endif /* #ifndef HW_PL041_H */
#endif /* HW_PL041_H */
2 changes: 1 addition & 1 deletion hw/display/qxl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_QXL_H
#define HW_QXL_H 1
#define HW_QXL_H

#include "qemu-common.h"

Expand Down
3 changes: 2 additions & 1 deletion hw/display/vga_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef HW_VGA_INT_H
#define HW_VGA_INT_H 1
#define HW_VGA_INT_H

#include "hw/hw.h"
#include "exec/memory.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/intc/gic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ static inline bool gic_test_pending(GICState *s, int irq, int cm)
}
}

#endif /* !QEMU_ARM_GIC_INTERNAL_H */
#endif /* QEMU_ARM_GIC_INTERNAL_H */
2 changes: 1 addition & 1 deletion hw/intc/gicv3_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,4 @@ static inline void gicv3_cache_all_target_cpustates(GICv3State *s)
}
}

#endif /* !QEMU_ARM_GIC_INTERNAL_H */
#endif /* QEMU_ARM_GICV3_INTERNAL_H */
2 changes: 1 addition & 1 deletion hw/lm32/lm32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_LM32_H
#define HW_LM32_H 1
#define HW_LM32_H

#include "hw/char/lm32_juart.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/net/ne2000.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_NE2000_H
#define HW_NE2000_H 1
#define HW_NE2000_H

#define NE2000_PMEM_SIZE (32*1024)
#define NE2000_PMEM_START (16*1024)
Expand Down
2 changes: 1 addition & 1 deletion hw/net/pcnet.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_PCNET_H
#define HW_PCNET_H 1
#define HW_PCNET_H

#define PCNET_IOPORT_SIZE 0x20
#define PCNET_PNPMMIO_SIZE 0x20
Expand Down
2 changes: 1 addition & 1 deletion hw/pci-bridge/xio3130_upstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ PCIEPort *xio3130_upstream_init(PCIBus *bus, int devfn, bool multifunction,
const char *bus_name, pci_map_irq_fn map_irq,
uint8_t port);

#endif /* QEMU_XIO3130_H */
#endif /* QEMU_XIO3130_UPSTREAM_H */
2 changes: 1 addition & 1 deletion hw/s390x/s390-virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#ifndef HW_S390_VIRTIO_H
#define HW_S390_VIRTIO_H 1
#define HW_S390_VIRTIO_H

#include "hw/nmi.h"
#include "standard-headers/asm-s390/kvm_virtio.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/xen/xen-host-pci-device.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ int xen_host_pci_set_block(XenHostPCIDevice *d, int pos, uint8_t *buf,

int xen_host_pci_find_ext_cap_offset(XenHostPCIDevice *s, uint32_t cap);

#endif /* !XEN_HOST_PCI_DEVICE_H_ */
#endif /* XEN_HOST_PCI_DEVICE_H */
2 changes: 1 addition & 1 deletion hw/xen/xen_pt.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ int xen_pt_register_vga_regions(XenHostPCIDevice *dev);
int xen_pt_unregister_vga_regions(XenHostPCIDevice *dev);
void xen_pt_setup_vga(XenPCIPassthroughState *s, XenHostPCIDevice *dev,
Error **errp);
#endif /* !XEN_PT_H */
#endif /* XEN_PT_H */
2 changes: 1 addition & 1 deletion hw/xenpv/xen_domainbuild.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef QEMU_HW_XEN_DOMAINBUILD_H
#define QEMU_HW_XEN_DOMAINBUILD_H 1
#define QEMU_HW_XEN_DOMAINBUILD_H

#include "hw/xen/xen_common.h"

Expand Down
3 changes: 2 additions & 1 deletion include/block/blockjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef BLOCKJOB_H
#define BLOCKJOB_H 1
#define BLOCKJOB_H

#include "block/block.h"

Expand Down
2 changes: 1 addition & 1 deletion include/block/thread-pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifndef QEMU_THREAD_POOL_H
#define QEMU_THREAD_POOL_H 1
#define QEMU_THREAD_POOL_H

#include "block/block.h"

Expand Down
4 changes: 2 additions & 2 deletions include/exec/cpu-common.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CPU_COMMON_H
#define CPU_COMMON_H 1
#define CPU_COMMON_H

/* CPU interfaces that are target independent. */

Expand Down Expand Up @@ -117,4 +117,4 @@ int qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque);

#endif

#endif /* !CPU_COMMON_H */
#endif /* CPU_COMMON_H */
2 changes: 1 addition & 1 deletion include/exec/gen-icount.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef GEN_ICOUNT_H
#define GEN_ICOUNT_H 1
#define GEN_ICOUNT_H

#include "qemu/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion include/exec/helper-gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This one expands generation functions for tcg opcodes. */

#ifndef HELPER_GEN_H
#define HELPER_GEN_H 1
#define HELPER_GEN_H

#include "exec/helper-head.h"

Expand Down
2 changes: 1 addition & 1 deletion include/exec/helper-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This one expands prototypes for the helper functions. */

#ifndef HELPER_PROTO_H
#define HELPER_PROTO_H 1
#define HELPER_PROTO_H

#include "exec/helper-head.h"

Expand Down
2 changes: 1 addition & 1 deletion include/exec/helper-tcg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This one defines data structures private to tcg.c. */

#ifndef HELPER_TCG_H
#define HELPER_TCG_H 1
#define HELPER_TCG_H

#include "exec/helper-head.h"

Expand Down
3 changes: 2 additions & 1 deletion include/exec/softmmu-semi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
*
* This code is licensed under the GPL
*/

#ifndef SOFTMMU_SEMI_H
#define SOFTMMU_SEMI_H 1
#define SOFTMMU_SEMI_H

static inline uint64_t softmmu_tget64(CPUArchState *env, target_ulong addr)
{
Expand Down
2 changes: 1 addition & 1 deletion include/fpu/softfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,4 @@ static inline int float128_is_any_nan(float128 a)
*----------------------------------------------------------------------------*/
float128 float128_default_nan(float_status *status);

#endif /* !SOFTFLOAT_H */
#endif /* SOFTFLOAT_H */
3 changes: 2 additions & 1 deletion include/hw/acpi/acpi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#ifndef QEMU_HW_ACPI_H
#define QEMU_HW_ACPI_H

/*
* Copyright (c) 2009 Isaku Yamahata <yamahata at valinux co jp>
* VA Linux Systems Japan K.K.
Expand Down Expand Up @@ -188,4 +189,4 @@ struct AcpiSlicOem {
};
int acpi_get_slic_oem(AcpiSlicOem *oem);

#endif /* !QEMU_HW_ACPI_H */
#endif /* QEMU_HW_ACPI_H */
5 changes: 3 additions & 2 deletions include/hw/arm/pxa.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
*
* This code is licensed under the GNU GPL v2.
*/

#ifndef PXA_H
# define PXA_H "pxa.h"
#define PXA_H

#include "exec/memory.h"
#include "target-arm/cpu-qom.h"
Expand Down Expand Up @@ -189,4 +190,4 @@ PXA2xxState *pxa270_init(MemoryRegion *address_space, unsigned int sdram_size,
const char *revision);
PXA2xxState *pxa255_init(MemoryRegion *address_space, unsigned int sdram_size);

#endif /* PXA_H */
#endif /* PXA_H */
3 changes: 1 addition & 2 deletions include/hw/arm/soc_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
*/

#ifndef HW_SOC_DMA_H
#define HW_SOC_DMA_H 1

#define HW_SOC_DMA_H

#include "exec/memory.h"
#include "hw/irq.h"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/audio/pcspk.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ static inline ISADevice *pcspk_init(ISABus *bus, ISADevice *pit)
return isadev;
}

#endif /* !HW_PCSPK_H */
#endif /* HW_PCSPK_H */
2 changes: 1 addition & 1 deletion include/hw/block/flash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_FLASH_H
#define HW_FLASH_H 1
#define HW_FLASH_H

/* NOR flash devices */

Expand Down
2 changes: 1 addition & 1 deletion include/hw/bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

#ifndef HW_BT_H
#define HW_BT_H 1
#define HW_BT_H

#include "hw/irq.h"

Expand Down
2 changes: 1 addition & 1 deletion include/hw/char/escc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_ESCC_H
#define HW_ESCC_H 1
#define HW_ESCC_H

/* escc.c */
#define TYPE_ESCC "escc"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/char/lm32_juart.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ uint32_t lm32_juart_get_jrx(DeviceState *d);
void lm32_juart_set_jtx(DeviceState *d, uint32_t jtx);
void lm32_juart_set_jrx(DeviceState *d, uint32_t jrx);

#endif /* QEMU_HW_LM32_JUART_H */
#endif /* QEMU_HW_CHAR_LM32_JUART_H */
3 changes: 2 additions & 1 deletion include/hw/char/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef HW_SERIAL_H
#define HW_SERIAL_H 1
#define HW_SERIAL_H

#include "hw/hw.h"
#include "sysemu/sysemu.h"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/cris/etraxfs_dma.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_ETRAXFS_DMA_H
#define HW_ETRAXFS_DMA_H 1
#define HW_ETRAXFS_DMA_H

struct dma_context_metadata {
/* data descriptor md */
Expand Down
2 changes: 1 addition & 1 deletion include/hw/display/dpcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ typedef struct DPCDState DPCDState;
#define DPCD_SINK_STATUS 0x205
#define DPCD_RECEIVE_PORT_0_STATUS 0x01

#endif /* !DPCD_H */
#endif /* DPCD_H */
2 changes: 1 addition & 1 deletion include/hw/dma/xlnx_dpdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ void xlnx_dpdma_set_host_data_location(XlnxDPDMAState *s, uint8_t channel,
*/
void xlnx_dpdma_trigger_vsync_irq(XlnxDPDMAState *s);

#endif /* !XLNX_DPDMA_H */
#endif /* XLNX_DPDMA_H */
2 changes: 1 addition & 1 deletion include/hw/empty_slot.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_EMPTY_SLOT_H
#define HW_EMPTY_SLOT_H 1
#define HW_EMPTY_SLOT_H

/* empty_slot.c */
void empty_slot_init(hwaddr addr, uint64_t slot_size);
Expand Down
2 changes: 1 addition & 1 deletion include/hw/fw-path-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifndef FW_PATH_PROVIDER_H
#define FW_PATH_PROVIDER_H 1
#define FW_PATH_PROVIDER_H

#include "qemu-common.h"
#include "qom/object.h"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/i2c/pm_smbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ typedef struct PMSMBus {

void pm_smbus_init(DeviceState *parent, PMSMBus *smb);

#endif /* !PM_SMBUS_H */
#endif /* PM_SMBUS_H */
Loading

0 comments on commit 175de52

Please sign in to comment.