You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
x86: Fix ASM_X86__ header guards
Change header guards named "ASM_X86__*" to "_ASM_X86_*" since: a. the double underscore is ugly and pointless. b. no leading underscore violates namespace constraints. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
@@ -41,12 +41,12 @@
|
||||
#define stub_rt_sigreturn sys_rt_sigreturn
|
||||
|
||||
#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
|
||||
#undef ASM_X86__UNISTD_64_H
|
||||
#undef _ASM_X86_UNISTD_64_H
|
||||
#include "../../x86/include/asm/unistd_64.h"
|
||||
|
||||
#undef __SYSCALL
|
||||
#define __SYSCALL(nr, sym) [ nr ] = sym,
|
||||
#undef ASM_X86__UNISTD_64_H
|
||||
#undef _ASM_X86_UNISTD_64_H
|
||||
|
||||
typedef void (*sys_call_ptr_t)(void);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
#undef CONFIG_PARAVIRT
|
||||
#ifdef CONFIG_X86_32
|
||||
#define ASM_X86__DESC_H 1
|
||||
#define _ASM_X86_DESC_H 1
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
* 2 of the Licence, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef ASM_X86__A_OUT_CORE_H
|
||||
#define ASM_X86__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_X86__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>
|
||||
@@ -175,4 +175,4 @@ static inline void acpi_fake_nodes(const struct bootnode *fake_nodes,
|
||||
|
||||
#define acpi_unlazy_tlb(x) leave_mm(x)
|
||||
|
||||
#endif /* ASM_X86__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 /* ASM_X86__AGP_H */
|
||||
#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
|
||||
|
||||
#include <linux/irqreturn.h>
|
||||
|
||||
@@ -32,4 +32,4 @@ static inline int amd_iommu_init(void) { return -ENODEV; }
|
||||
static inline void amd_iommu_detect(void) { }
|
||||
#endif
|
||||
|
||||
#endif /* ASM_X86__AMD_IOMMU_H */
|
||||
#endif /* _ASM_X86_AMD_IOMMU_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef ASM_X86__AMD_IOMMU_TYPES_H
|
||||
#define ASM_X86__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>
|
||||
@@ -401,4 +401,4 @@ static inline u16 calc_devid(u8 bus, u8 devfn)
|
||||
return (((u16)bus) << 8) | devfn;
|
||||
}
|
||||
|
||||
#endif /* ASM_X86__AMD_IOMMU_TYPES_H */
|
||||
#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>
|
||||
@@ -196,4 +196,4 @@ static inline void init_apic_mappings(void) { }
|
||||
|
||||
#endif /* !CONFIG_X86_LOCAL_APIC */
|
||||
|
||||
#endif /* ASM_X86__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.)
|
||||
@@ -414,4 +414,4 @@ struct local_apic {
|
||||
#else
|
||||
#define BAD_APICID 0xFFFFu
|
||||
#endif
|
||||
#endif /* ASM_X86__APICDEF_H */
|
||||
#endif /* _ASM_X86_APICDEF_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__ARCH_HOOKS_H
|
||||
#define ASM_X86__ARCH_HOOKS_H
|
||||
#ifndef _ASM_X86_ARCH_HOOKS_H
|
||||
#define _ASM_X86_ARCH_HOOKS_H
|
||||
|
||||
#include <linux/interrupt.h>
|
||||
|
||||
@@ -23,4 +23,4 @@ extern void pre_time_init_hook(void);
|
||||
extern void time_init_hook(void);
|
||||
extern void mca_nmi_hook(void);
|
||||
|
||||
#endif /* ASM_X86__ARCH_HOOKS_H */
|
||||
#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
|
||||
@@ -44,4 +44,4 @@
|
||||
_ASM_PTR #from "," #to "\n" \
|
||||
" .previous\n"
|
||||
|
||||
#endif /* ASM_X86__ASM_H */
|
||||
#endif /* _ASM_X86_ASM_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__ATOMIC_32_H
|
||||
#define ASM_X86__ATOMIC_32_H
|
||||
#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 /* ASM_X86__ATOMIC_32_H */
|
||||
#endif /* _ASM_X86_ATOMIC_32_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__ATOMIC_64_H
|
||||
#define ASM_X86__ATOMIC_64_H
|
||||
#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 /* ASM_X86__ATOMIC_64_H */
|
||||
#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 /* ASM_X86__AUXVEC_H */
|
||||
#endif /* _ASM_X86_AUXVEC_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__BIOS_EBDA_H
|
||||
#define ASM_X86__BIOS_EBDA_H
|
||||
#ifndef _ASM_X86_BIOS_EBDA_H
|
||||
#define _ASM_X86_BIOS_EBDA_H
|
||||
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -33,4 +33,4 @@ static inline void start_periodic_check_for_corruption(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ASM_X86__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.
|
||||
@@ -448,4 +448,4 @@ static inline int fls(int x)
|
||||
#include <asm-generic/bitops/minix.h>
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* ASM_X86__BITOPS_H */
|
||||
#endif /* _ASM_X86_BITOPS_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__BOOT_H
|
||||
#define ASM_X86__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_SYSSEG 0x1000
|
||||
@@ -23,4 +23,4 @@
|
||||
#define BOOT_STACK_SIZE 0x1000
|
||||
#endif
|
||||
|
||||
#endif /* ASM_X86__BOOT_H */
|
||||
#endif /* _ASM_X86_BOOT_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ASM_X86__BOOTPARAM_H
|
||||
#define ASM_X86__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_X86__BOOTPARAM_H */
|
||||
#endif /* _ASM_X86_BOOTPARAM_H */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user