Skip to content

Commit

Permalink
x86: consolidate header guards
Browse files Browse the repository at this point in the history
This patch is the result of an automatic script that consolidates the
format of all the headers in include/asm-x86/.

The format:

1. No leading underscore. Names with leading underscores are reserved.
2. Pathname components are separated by two underscores. So we can
   distinguish between mm_types.h and mm/types.h.
3. Everything except letters and numbers are turned into single
   underscores.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
  • Loading branch information
Vegard Nossum committed Jul 22, 2008
1 parent a656c8e commit 77ef50a
Show file tree
Hide file tree
Showing 282 changed files with 846 additions and 846 deletions.
6 changes: 3 additions & 3 deletions include/asm-x86/a.out-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* 2 of the Licence, or (at your option) any later version.
*/

#ifndef _ASM_A_OUT_CORE_H
#define _ASM_A_OUT_CORE_H
#ifndef ASM_X86__A_OUT_CORE_H
#define ASM_X86__A_OUT_CORE_H

#ifdef __KERNEL__
#ifdef CONFIG_X86_32
Expand Down Expand Up @@ -70,4 +70,4 @@ static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)

#endif /* CONFIG_X86_32 */
#endif /* __KERNEL__ */
#endif /* _ASM_A_OUT_CORE_H */
#endif /* ASM_X86__A_OUT_CORE_H */
6 changes: 3 additions & 3 deletions include/asm-x86/a.out.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_A_OUT_H
#define _ASM_X86_A_OUT_H
#ifndef ASM_X86__A_OUT_H
#define ASM_X86__A_OUT_H

struct exec
{
Expand All @@ -17,4 +17,4 @@ struct exec
#define N_DRSIZE(a) ((a).a_drsize)
#define N_SYMSIZE(a) ((a).a_syms)

#endif /* _ASM_X86_A_OUT_H */
#endif /* ASM_X86__A_OUT_H */
6 changes: 3 additions & 3 deletions include/asm-x86/acpi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_ACPI_H
#define _ASM_X86_ACPI_H
#ifndef ASM_X86__ACPI_H
#define ASM_X86__ACPI_H

/*
* Copyright (C) 2001 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
Expand Down Expand Up @@ -173,4 +173,4 @@ static inline void acpi_fake_nodes(const struct bootnode *fake_nodes,

#define acpi_unlazy_tlb(x) leave_mm(x)

#endif /*__X86_ASM_ACPI_H*/
#endif /* ASM_X86__ACPI_H */
6 changes: 3 additions & 3 deletions include/asm-x86/agp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_AGP_H
#define _ASM_X86_AGP_H
#ifndef ASM_X86__AGP_H
#define ASM_X86__AGP_H

#include <asm/pgtable.h>
#include <asm/cacheflush.h>
Expand Down Expand Up @@ -32,4 +32,4 @@
#define free_gatt_pages(table, order) \
free_pages((unsigned long)(table), (order))

#endif
#endif /* ASM_X86__AGP_H */
6 changes: 3 additions & 3 deletions include/asm-x86/alternative.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_ALTERNATIVE_H
#define _ASM_X86_ALTERNATIVE_H
#ifndef ASM_X86__ALTERNATIVE_H
#define ASM_X86__ALTERNATIVE_H

#include <linux/types.h>
#include <linux/stddef.h>
Expand Down Expand Up @@ -180,4 +180,4 @@ extern void add_nops(void *insns, unsigned int len);
extern void *text_poke(void *addr, const void *opcode, size_t len);
extern void *text_poke_early(void *addr, const void *opcode, size_t len);

#endif /* _ASM_X86_ALTERNATIVE_H */
#endif /* ASM_X86__ALTERNATIVE_H */
6 changes: 3 additions & 3 deletions include/asm-x86/amd_iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef _ASM_X86_AMD_IOMMU_H
#define _ASM_X86_AMD_IOMMU_H
#ifndef ASM_X86__AMD_IOMMU_H
#define ASM_X86__AMD_IOMMU_H

#ifdef CONFIG_AMD_IOMMU
extern int amd_iommu_init(void);
Expand All @@ -29,4 +29,4 @@ static inline int amd_iommu_init(void) { return -ENODEV; }
static inline void amd_iommu_detect(void) { }
#endif

#endif
#endif /* ASM_X86__AMD_IOMMU_H */
6 changes: 3 additions & 3 deletions include/asm-x86/amd_iommu_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef __AMD_IOMMU_TYPES_H__
#define __AMD_IOMMU_TYPES_H__
#ifndef ASM_X86__AMD_IOMMU_TYPES_H
#define ASM_X86__AMD_IOMMU_TYPES_H

#include <linux/types.h>
#include <linux/list.h>
Expand Down Expand Up @@ -339,4 +339,4 @@ static inline u16 calc_devid(u8 bus, u8 devfn)
return (((u16)bus) << 8) | devfn;
}

#endif
#endif /* ASM_X86__AMD_IOMMU_TYPES_H */
6 changes: 3 additions & 3 deletions include/asm-x86/apic.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_APIC_H
#define _ASM_X86_APIC_H
#ifndef ASM_X86__APIC_H
#define ASM_X86__APIC_H

#include <linux/pm.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -128,4 +128,4 @@ static inline void init_apic_mappings(void) { }

#endif /* !CONFIG_X86_LOCAL_APIC */

#endif /* __ASM_APIC_H */
#endif /* ASM_X86__APIC_H */
6 changes: 3 additions & 3 deletions include/asm-x86/apicdef.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_APICDEF_H
#define _ASM_X86_APICDEF_H
#ifndef ASM_X86__APICDEF_H
#define ASM_X86__APICDEF_H

/*
* Constants for various Intel APICs. (local APIC, IOAPIC, etc.)
Expand Down Expand Up @@ -411,4 +411,4 @@ struct local_apic {
#else
#define BAD_APICID 0xFFFFu
#endif
#endif
#endif /* ASM_X86__APICDEF_H */
6 changes: 3 additions & 3 deletions include/asm-x86/arch_hooks.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_ARCH_HOOKS_H
#define _ASM_ARCH_HOOKS_H
#ifndef ASM_X86__ARCH_HOOKS_H
#define ASM_X86__ARCH_HOOKS_H

#include <linux/interrupt.h>

Expand All @@ -25,4 +25,4 @@ extern void pre_time_init_hook(void);
extern void time_init_hook(void);
extern void mca_nmi_hook(void);

#endif
#endif /* ASM_X86__ARCH_HOOKS_H */
6 changes: 3 additions & 3 deletions include/asm-x86/asm.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_ASM_H
#define _ASM_X86_ASM_H
#ifndef ASM_X86__ASM_H
#define ASM_X86__ASM_H

#ifdef __ASSEMBLY__
# define __ASM_FORM(x) x
Expand Down Expand Up @@ -39,4 +39,4 @@
_ASM_PTR #from "," #to "\n" \
" .previous\n"

#endif /* _ASM_X86_ASM_H */
#endif /* ASM_X86__ASM_H */
6 changes: 3 additions & 3 deletions include/asm-x86/atomic_32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ARCH_I386_ATOMIC__
#define __ARCH_I386_ATOMIC__
#ifndef ASM_X86__ATOMIC_32_H
#define ASM_X86__ATOMIC_32_H

#include <linux/compiler.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -256,4 +256,4 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#endif
#endif /* ASM_X86__ATOMIC_32_H */
6 changes: 3 additions & 3 deletions include/asm-x86/atomic_64.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ARCH_X86_64_ATOMIC__
#define __ARCH_X86_64_ATOMIC__
#ifndef ASM_X86__ATOMIC_64_H
#define ASM_X86__ATOMIC_64_H

#include <asm/alternative.h>
#include <asm/cmpxchg.h>
Expand Down Expand Up @@ -470,4 +470,4 @@ static inline void atomic_or_long(unsigned long *v1, unsigned long v2)
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#endif
#endif /* ASM_X86__ATOMIC_64_H */
6 changes: 3 additions & 3 deletions include/asm-x86/auxvec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_AUXVEC_H
#define _ASM_X86_AUXVEC_H
#ifndef ASM_X86__AUXVEC_H
#define ASM_X86__AUXVEC_H
/*
* Architecture-neutral AT_ values in 0-17, leave some room
* for more of them, start the x86-specific ones at 32.
Expand All @@ -9,4 +9,4 @@
#endif
#define AT_SYSINFO_EHDR 33

#endif
#endif /* ASM_X86__AUXVEC_H */
6 changes: 3 additions & 3 deletions include/asm-x86/bios_ebda.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _MACH_BIOS_EBDA_H
#define _MACH_BIOS_EBDA_H
#ifndef ASM_X86__BIOS_EBDA_H
#define ASM_X86__BIOS_EBDA_H

#include <asm/io.h>

Expand All @@ -16,4 +16,4 @@ static inline unsigned int get_bios_ebda(void)

void reserve_ebda_region(void);

#endif /* _MACH_BIOS_EBDA_H */
#endif /* ASM_X86__BIOS_EBDA_H */
6 changes: 3 additions & 3 deletions include/asm-x86/bitops.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_BITOPS_H
#define _ASM_X86_BITOPS_H
#ifndef ASM_X86__BITOPS_H
#define ASM_X86__BITOPS_H

/*
* Copyright 1992, Linus Torvalds.
Expand Down Expand Up @@ -458,4 +458,4 @@ static inline void set_bit_string(unsigned long *bitmap,
#include <asm-generic/bitops/minix.h>

#endif /* __KERNEL__ */
#endif /* _ASM_X86_BITOPS_H */
#endif /* ASM_X86__BITOPS_H */
6 changes: 3 additions & 3 deletions include/asm-x86/boot.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_BOOT_H
#define _ASM_BOOT_H
#ifndef ASM_X86__BOOT_H
#define ASM_X86__BOOT_H

/* Don't touch these, unless you really know what you're doing. */
#define DEF_INITSEG 0x9000
Expand All @@ -25,4 +25,4 @@
#define BOOT_STACK_SIZE 0x1000
#endif

#endif /* _ASM_BOOT_H */
#endif /* ASM_X86__BOOT_H */
6 changes: 3 additions & 3 deletions include/asm-x86/bootparam.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_BOOTPARAM_H
#define _ASM_BOOTPARAM_H
#ifndef ASM_X86__BOOTPARAM_H
#define ASM_X86__BOOTPARAM_H

#include <linux/types.h>
#include <linux/screen_info.h>
Expand Down Expand Up @@ -108,4 +108,4 @@ struct boot_params {
__u8 _pad9[276]; /* 0xeec */
} __attribute__((packed));

#endif /* _ASM_BOOTPARAM_H */
#endif /* ASM_X86__BOOTPARAM_H */
6 changes: 3 additions & 3 deletions include/asm-x86/bug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_BUG_H
#define _ASM_X86_BUG_H
#ifndef ASM_X86__BUG_H
#define ASM_X86__BUG_H

#ifdef CONFIG_BUG
#define HAVE_ARCH_BUG
Expand Down Expand Up @@ -36,4 +36,4 @@ do { \
#endif /* !CONFIG_BUG */

#include <asm-generic/bug.h>
#endif
#endif /* ASM_X86__BUG_H */
6 changes: 3 additions & 3 deletions include/asm-x86/bugs.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_X86_BUGS_H
#define _ASM_X86_BUGS_H
#ifndef ASM_X86__BUGS_H
#define ASM_X86__BUGS_H

extern void check_bugs(void);
int ppro_with_ram_bug(void);

#endif /* _ASM_X86_BUGS_H */
#endif /* ASM_X86__BUGS_H */
6 changes: 3 additions & 3 deletions include/asm-x86/byteorder.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_BYTEORDER_H
#define _ASM_X86_BYTEORDER_H
#ifndef ASM_X86__BYTEORDER_H
#define ASM_X86__BYTEORDER_H

#include <asm/types.h>
#include <linux/compiler.h>
Expand Down Expand Up @@ -78,4 +78,4 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)

#include <linux/byteorder/little_endian.h>

#endif /* _ASM_X86_BYTEORDER_H */
#endif /* ASM_X86__BYTEORDER_H */
6 changes: 3 additions & 3 deletions include/asm-x86/cache.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ARCH_X86_CACHE_H
#define _ARCH_X86_CACHE_H
#ifndef ASM_X86__CACHE_H
#define ASM_X86__CACHE_H

/* L1 cache line size */
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
Expand All @@ -17,4 +17,4 @@
#endif
#endif

#endif
#endif /* ASM_X86__CACHE_H */
6 changes: 3 additions & 3 deletions include/asm-x86/cacheflush.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_X86_CACHEFLUSH_H
#define _ASM_X86_CACHEFLUSH_H
#ifndef ASM_X86__CACHEFLUSH_H
#define ASM_X86__CACHEFLUSH_H

/* Keep includes the same across arches. */
#include <linux/mm.h>
Expand Down Expand Up @@ -112,4 +112,4 @@ static inline int rodata_test(void)
}
#endif

#endif
#endif /* ASM_X86__CACHEFLUSH_H */
6 changes: 3 additions & 3 deletions include/asm-x86/calgary.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef _ASM_X86_64_CALGARY_H
#define _ASM_X86_64_CALGARY_H
#ifndef ASM_X86__CALGARY_H
#define ASM_X86__CALGARY_H

#include <linux/spinlock.h>
#include <linux/device.h>
Expand Down Expand Up @@ -69,4 +69,4 @@ static inline int calgary_iommu_init(void) { return 1; }
static inline void detect_calgary(void) { return; }
#endif

#endif /* _ASM_X86_64_CALGARY_H */
#endif /* ASM_X86__CALGARY_H */
6 changes: 3 additions & 3 deletions include/asm-x86/checksum_32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _I386_CHECKSUM_H
#define _I386_CHECKSUM_H
#ifndef ASM_X86__CHECKSUM_32_H
#define ASM_X86__CHECKSUM_32_H

#include <linux/in6.h>

Expand Down Expand Up @@ -186,4 +186,4 @@ static inline __wsum csum_and_copy_to_user(const void *src,
return (__force __wsum)-1; /* invalid checksum */
}

#endif
#endif /* ASM_X86__CHECKSUM_32_H */
6 changes: 3 additions & 3 deletions include/asm-x86/checksum_64.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _X86_64_CHECKSUM_H
#define _X86_64_CHECKSUM_H
#ifndef ASM_X86__CHECKSUM_64_H
#define ASM_X86__CHECKSUM_64_H

/*
* Checksums for x86-64
Expand Down Expand Up @@ -188,4 +188,4 @@ static inline unsigned add32_with_carry(unsigned a, unsigned b)
return a;
}

#endif
#endif /* ASM_X86__CHECKSUM_64_H */
6 changes: 3 additions & 3 deletions include/asm-x86/cmpxchg_32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __ASM_CMPXCHG_H
#define __ASM_CMPXCHG_H
#ifndef ASM_X86__CMPXCHG_32_H
#define ASM_X86__CMPXCHG_32_H

#include <linux/bitops.h> /* for LOCK_PREFIX */

Expand Down Expand Up @@ -341,4 +341,4 @@ extern unsigned long long cmpxchg_486_u64(volatile void *, u64, u64);

#endif

#endif
#endif /* ASM_X86__CMPXCHG_32_H */
Loading

0 comments on commit 77ef50a

Please sign in to comment.