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:
H. Peter Anvin
2008-10-22 22:26:29 -07:00
parent 87e299e5c7
commit 1965aae3c9
271 changed files with 805 additions and 805 deletions

View File

@@ -1,5 +1,5 @@
#ifndef ASM_X86__XEN__EVENTS_H
#define ASM_X86__XEN__EVENTS_H
#ifndef _ASM_X86_XEN__EVENTS_H
#define _ASM_X86_XEN__EVENTS_H
enum ipi_vector {
XEN_RESCHEDULE_VECTOR,
@@ -21,4 +21,4 @@ static inline void xen_do_IRQ(int irq, struct pt_regs *regs)
do_IRQ(regs);
}
#endif /* ASM_X86__XEN__EVENTS_H */
#endif /* _ASM_X86_XEN__EVENTS_H */

View File

@@ -1,7 +1,7 @@
#ifndef ASM_X86__XEN__GRANT_TABLE_H
#define ASM_X86__XEN__GRANT_TABLE_H
#ifndef _ASM_X86_XEN__GRANT_TABLE_H
#define _ASM_X86_XEN__GRANT_TABLE_H
#define xen_alloc_vm_area(size) alloc_vm_area(size)
#define xen_free_vm_area(area) free_vm_area(area)
#endif /* ASM_X86__XEN__GRANT_TABLE_H */
#endif /* _ASM_X86_XEN__GRANT_TABLE_H */

View File

@@ -30,8 +30,8 @@
* IN THE SOFTWARE.
*/
#ifndef ASM_X86__XEN__HYPERCALL_H
#define ASM_X86__XEN__HYPERCALL_H
#ifndef _ASM_X86_XEN__HYPERCALL_H
#define _ASM_X86_XEN__HYPERCALL_H
#include <linux/errno.h>
#include <linux/string.h>
@@ -524,4 +524,4 @@ MULTI_stack_switch(struct multicall_entry *mcl,
mcl->args[1] = esp;
}
#endif /* ASM_X86__XEN__HYPERCALL_H */
#endif /* _ASM_X86_XEN__HYPERCALL_H */

View File

@@ -30,8 +30,8 @@
* IN THE SOFTWARE.
*/
#ifndef ASM_X86__XEN__HYPERVISOR_H
#define ASM_X86__XEN__HYPERVISOR_H
#ifndef _ASM_X86_XEN__HYPERVISOR_H
#define _ASM_X86_XEN__HYPERVISOR_H
#include <linux/types.h>
#include <linux/kernel.h>
@@ -79,4 +79,4 @@ extern enum xen_domain_type xen_domain_type;
#define xen_initial_domain() (xen_pv_domain() && xen_start_info->flags & SIF_INITDOMAIN)
#define xen_hvm_domain() (xen_domain_type == XEN_HVM_DOMAIN)
#endif /* ASM_X86__XEN__HYPERVISOR_H */
#endif /* _ASM_X86_XEN__HYPERVISOR_H */

View File

@@ -6,8 +6,8 @@
* Copyright (c) 2004, K A Fraser
*/
#ifndef ASM_X86__XEN__INTERFACE_H
#define ASM_X86__XEN__INTERFACE_H
#ifndef _ASM_X86_XEN__INTERFACE_H
#define _ASM_X86_XEN__INTERFACE_H
#ifdef __XEN__
#define __DEFINE_GUEST_HANDLE(name, type) \
@@ -172,4 +172,4 @@ DEFINE_GUEST_HANDLE_STRUCT(vcpu_guest_context);
#define XEN_CPUID XEN_EMULATE_PREFIX "cpuid"
#endif
#endif /* ASM_X86__XEN__INTERFACE_H */
#endif /* _ASM_X86_XEN__INTERFACE_H */

View File

@@ -6,8 +6,8 @@
* Copyright (c) 2004, K A Fraser
*/
#ifndef ASM_X86__XEN__INTERFACE_32_H
#define ASM_X86__XEN__INTERFACE_32_H
#ifndef _ASM_X86_XEN__INTERFACE_32_H
#define _ASM_X86_XEN__INTERFACE_32_H
/*
@@ -94,4 +94,4 @@ typedef struct xen_callback xen_callback_t;
#define xen_pfn_to_cr3(pfn) (((unsigned)(pfn) << 12) | ((unsigned)(pfn) >> 20))
#define xen_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20))
#endif /* ASM_X86__XEN__INTERFACE_32_H */
#endif /* _ASM_X86_XEN__INTERFACE_32_H */

View File

@@ -1,5 +1,5 @@
#ifndef ASM_X86__XEN__INTERFACE_64_H
#define ASM_X86__XEN__INTERFACE_64_H
#ifndef _ASM_X86_XEN__INTERFACE_64_H
#define _ASM_X86_XEN__INTERFACE_64_H
/*
* 64-bit segment selectors
@@ -156,4 +156,4 @@ typedef unsigned long xen_callback_t;
#endif /* !__ASSEMBLY__ */
#endif /* ASM_X86__XEN__INTERFACE_64_H */
#endif /* _ASM_X86_XEN__INTERFACE_64_H */

View File

@@ -1,5 +1,5 @@
#ifndef ASM_X86__XEN__PAGE_H
#define ASM_X86__XEN__PAGE_H
#ifndef _ASM_X86_XEN__PAGE_H
#define _ASM_X86_XEN__PAGE_H
#include <linux/pfn.h>
@@ -162,4 +162,4 @@ xmaddr_t arbitrary_virt_to_machine(void *address);
void make_lowmem_page_readonly(void *vaddr);
void make_lowmem_page_readwrite(void *vaddr);
#endif /* ASM_X86__XEN__PAGE_H */
#endif /* _ASM_X86_XEN__PAGE_H */