mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
x86: consolidate header guards
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>
This commit is contained in:
@@ -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
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
@@ -32,4 +32,4 @@
|
||||
#define free_gatt_pages(table, order) \
|
||||
free_pages((unsigned long)(table), (order))
|
||||
|
||||
#endif
|
||||
#endif /* ASM_X86__AGP_H */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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.)
|
||||
@@ -411,4 +411,4 @@ struct local_apic {
|
||||
#else
|
||||
#define BAD_APICID 0xFFFFu
|
||||
#endif
|
||||
#endif
|
||||
#endif /* ASM_X86__APICDEF_H */
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
@@ -39,4 +39,4 @@
|
||||
_ASM_PTR #from "," #to "\n" \
|
||||
" .previous\n"
|
||||
|
||||
#endif /* _ASM_X86_ASM_H */
|
||||
#endif /* ASM_X86__ASM_H */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
@@ -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 */
|
||||
|
||||
@@ -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.
|
||||
@@ -9,4 +9,4 @@
|
||||
#endif
|
||||
#define AT_SYSINFO_EHDR 33
|
||||
|
||||
#endif
|
||||
#endif /* ASM_X86__AUXVEC_H */
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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.
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
@@ -25,4 +25,4 @@
|
||||
#define BOOT_STACK_SIZE 0x1000
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_BOOT_H */
|
||||
#endif /* ASM_X86__BOOT_H */
|
||||
|
||||
@@ -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>
|
||||
@@ -108,4 +108,4 @@ struct boot_params {
|
||||
__u8 _pad9[276]; /* 0xeec */
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif /* _ASM_BOOTPARAM_H */
|
||||
#endif /* ASM_X86__BOOTPARAM_H */
|
||||
|
||||
@@ -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
|
||||
@@ -36,4 +36,4 @@ do { \
|
||||
#endif /* !CONFIG_BUG */
|
||||
|
||||
#include <asm-generic/bug.h>
|
||||
#endif
|
||||
#endif /* ASM_X86__BUG_H */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user