diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:26:29 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:55:23 -0400 |
commit | 1965aae3c98397aad957412413c07e97b1bd4e64 (patch) | |
tree | 1386fcb54753f8dda8f99ca6e5ecab0add1f029f /arch/x86/include/asm/mach-default | |
parent | 87e299e5c7508a9443f04703f1d0c7f518f79ea9 (diff) |
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>
Diffstat (limited to 'arch/x86/include/asm/mach-default')
-rw-r--r-- | arch/x86/include/asm/mach-default/apm.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apicdef.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_ipi.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_mpparse.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_mpspec.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_timer.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_traps.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_wakecpu.h | 6 |
9 files changed, 27 insertions, 27 deletions
diff --git a/arch/x86/include/asm/mach-default/apm.h b/arch/x86/include/asm/mach-default/apm.h index 2aa61b54fbd5..fc392ec1a578 100644 --- a/arch/x86/include/asm/mach-default/apm.h +++ b/arch/x86/include/asm/mach-default/apm.h | |||
@@ -3,8 +3,8 @@ | |||
3 | * Split out from apm.c by Osamu Tomita <tomita@cinet.co.jp> | 3 | * Split out from apm.c by Osamu Tomita <tomita@cinet.co.jp> |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef ASM_X86__MACH_DEFAULT__APM_H | 6 | #ifndef _ASM_X86_MACH_DEFAULT__APM_H |
7 | #define ASM_X86__MACH_DEFAULT__APM_H | 7 | #define _ASM_X86_MACH_DEFAULT__APM_H |
8 | 8 | ||
9 | #ifdef APM_ZERO_SEGS | 9 | #ifdef APM_ZERO_SEGS |
10 | # define APM_DO_ZERO_SEGS \ | 10 | # define APM_DO_ZERO_SEGS \ |
@@ -70,4 +70,4 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in, | |||
70 | return error; | 70 | return error; |
71 | } | 71 | } |
72 | 72 | ||
73 | #endif /* ASM_X86__MACH_DEFAULT__APM_H */ | 73 | #endif /* _ASM_X86_MACH_DEFAULT__APM_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index 3c66f2cdaec1..2ad00eb6deb9 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_APIC_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_APIC_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_APIC_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_APIC_H |
3 | 3 | ||
4 | #ifdef CONFIG_X86_LOCAL_APIC | 4 | #ifdef CONFIG_X86_LOCAL_APIC |
5 | 5 | ||
@@ -153,4 +153,4 @@ static inline void enable_apic_mode(void) | |||
153 | { | 153 | { |
154 | } | 154 | } |
155 | #endif /* CONFIG_X86_LOCAL_APIC */ | 155 | #endif /* CONFIG_X86_LOCAL_APIC */ |
156 | #endif /* ASM_X86__MACH_DEFAULT__MACH_APIC_H */ | 156 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_APIC_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_apicdef.h b/arch/x86/include/asm/mach-default/mach_apicdef.h index 0c2d41c41b20..b9feb25bfe6f 100644 --- a/arch/x86/include/asm/mach-default/mach_apicdef.h +++ b/arch/x86/include/asm/mach-default/mach_apicdef.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_APICDEF_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_APICDEF_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_APICDEF_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_APICDEF_H |
3 | 3 | ||
4 | #include <asm/apic.h> | 4 | #include <asm/apic.h> |
5 | 5 | ||
@@ -21,4 +21,4 @@ static inline unsigned get_apic_id(unsigned long x) | |||
21 | #define GET_APIC_ID(x) get_apic_id(x) | 21 | #define GET_APIC_ID(x) get_apic_id(x) |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #endif /* ASM_X86__MACH_DEFAULT__MACH_APICDEF_H */ | 24 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_APICDEF_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_ipi.h b/arch/x86/include/asm/mach-default/mach_ipi.h index 674bc7e50c35..377dfd8cfc7c 100644 --- a/arch/x86/include/asm/mach-default/mach_ipi.h +++ b/arch/x86/include/asm/mach-default/mach_ipi.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_IPI_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_IPI_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_IPI_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_IPI_H |
3 | 3 | ||
4 | /* Avoid include hell */ | 4 | /* Avoid include hell */ |
5 | #define NMI_VECTOR 0x02 | 5 | #define NMI_VECTOR 0x02 |
@@ -61,4 +61,4 @@ static inline void send_IPI_all(int vector) | |||
61 | } | 61 | } |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | #endif /* ASM_X86__MACH_DEFAULT__MACH_IPI_H */ | 64 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_IPI_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_mpparse.h b/arch/x86/include/asm/mach-default/mach_mpparse.h index 9c381f2815ac..028e08b335fb 100644 --- a/arch/x86/include/asm/mach-default/mach_mpparse.h +++ b/arch/x86/include/asm/mach-default/mach_mpparse.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_MPPARSE_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_MPPARSE_H |
3 | 3 | ||
4 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, | 4 | static inline int mps_oem_check(struct mp_config_table *mpc, char *oem, |
5 | char *productid) | 5 | char *productid) |
@@ -14,4 +14,4 @@ static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id) | |||
14 | } | 14 | } |
15 | 15 | ||
16 | 16 | ||
17 | #endif /* ASM_X86__MACH_DEFAULT__MACH_MPPARSE_H */ | 17 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_MPPARSE_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_mpspec.h b/arch/x86/include/asm/mach-default/mach_mpspec.h index d77646f011f1..2a9663306857 100644 --- a/arch/x86/include/asm/mach-default/mach_mpspec.h +++ b/arch/x86/include/asm/mach-default/mach_mpspec.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_MPSPEC_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_MPSPEC_H |
3 | 3 | ||
4 | #define MAX_IRQ_SOURCES 256 | 4 | #define MAX_IRQ_SOURCES 256 |
5 | 5 | ||
@@ -9,4 +9,4 @@ | |||
9 | #define MAX_MP_BUSSES 32 | 9 | #define MAX_MP_BUSSES 32 |
10 | #endif | 10 | #endif |
11 | 11 | ||
12 | #endif /* ASM_X86__MACH_DEFAULT__MACH_MPSPEC_H */ | 12 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_MPSPEC_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_timer.h b/arch/x86/include/asm/mach-default/mach_timer.h index 990b15833834..a075b4675b29 100644 --- a/arch/x86/include/asm/mach-default/mach_timer.h +++ b/arch/x86/include/asm/mach-default/mach_timer.h | |||
@@ -10,8 +10,8 @@ | |||
10 | * directly because of the awkward 8-bit access mechanism of the 82C54 | 10 | * directly because of the awkward 8-bit access mechanism of the 82C54 |
11 | * device. | 11 | * device. |
12 | */ | 12 | */ |
13 | #ifndef ASM_X86__MACH_DEFAULT__MACH_TIMER_H | 13 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_TIMER_H |
14 | #define ASM_X86__MACH_DEFAULT__MACH_TIMER_H | 14 | #define _ASM_X86_MACH_DEFAULT__MACH_TIMER_H |
15 | 15 | ||
16 | #define CALIBRATE_TIME_MSEC 30 /* 30 msecs */ | 16 | #define CALIBRATE_TIME_MSEC 30 /* 30 msecs */ |
17 | #define CALIBRATE_LATCH \ | 17 | #define CALIBRATE_LATCH \ |
@@ -45,4 +45,4 @@ static inline void mach_countup(unsigned long *count_p) | |||
45 | *count_p = count; | 45 | *count_p = count; |
46 | } | 46 | } |
47 | 47 | ||
48 | #endif /* ASM_X86__MACH_DEFAULT__MACH_TIMER_H */ | 48 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_TIMER_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_traps.h b/arch/x86/include/asm/mach-default/mach_traps.h index ff8778f26b84..d4fb0bc3fe18 100644 --- a/arch/x86/include/asm/mach-default/mach_traps.h +++ b/arch/x86/include/asm/mach-default/mach_traps.h | |||
@@ -2,8 +2,8 @@ | |||
2 | * Machine specific NMI handling for generic. | 2 | * Machine specific NMI handling for generic. |
3 | * Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp> | 3 | * Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp> |
4 | */ | 4 | */ |
5 | #ifndef ASM_X86__MACH_DEFAULT__MACH_TRAPS_H | 5 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_TRAPS_H |
6 | #define ASM_X86__MACH_DEFAULT__MACH_TRAPS_H | 6 | #define _ASM_X86_MACH_DEFAULT__MACH_TRAPS_H |
7 | 7 | ||
8 | #include <asm/mc146818rtc.h> | 8 | #include <asm/mc146818rtc.h> |
9 | 9 | ||
@@ -30,4 +30,4 @@ static inline void reassert_nmi(void) | |||
30 | unlock_cmos(); | 30 | unlock_cmos(); |
31 | } | 31 | } |
32 | 32 | ||
33 | #endif /* ASM_X86__MACH_DEFAULT__MACH_TRAPS_H */ | 33 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_TRAPS_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_wakecpu.h b/arch/x86/include/asm/mach-default/mach_wakecpu.h index 361b810f5160..d7136fcdd8f3 100644 --- a/arch/x86/include/asm/mach-default/mach_wakecpu.h +++ b/arch/x86/include/asm/mach-default/mach_wakecpu.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H | 1 | #ifndef _ASM_X86_MACH_DEFAULT__MACH_WAKECPU_H |
2 | #define ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H | 2 | #define _ASM_X86_MACH_DEFAULT__MACH_WAKECPU_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * This file copes with machines that wakeup secondary CPUs by the | 5 | * This file copes with machines that wakeup secondary CPUs by the |
@@ -39,4 +39,4 @@ static inline void restore_NMI_vector(unsigned short *high, unsigned short *low) | |||
39 | #define inquire_remote_apic(apicid) {} | 39 | #define inquire_remote_apic(apicid) {} |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #endif /* ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H */ | 42 | #endif /* _ASM_X86_MACH_DEFAULT__MACH_WAKECPU_H */ |