Skip to content

Commit

Permalink
x86: consolidate header guards
Browse files Browse the repository at this point in the history
This patch consolidates the header guard names which are also used
externally, i.e. in .c files.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
  • Loading branch information
Vegard Nossum committed Jul 22, 2008
1 parent 77ef50a commit a318631
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion arch/x86/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#undef CONFIG_PARAVIRT
#ifdef CONFIG_X86_32
#define _ASM_DESC_H_ 1
#define ASM_X86__DESC_H 1
#endif

#ifdef CONFIG_X86_64
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/asm-offsets_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#define __NO_STUBS 1
#undef __SYSCALL
#undef _ASM_X86_64_UNISTD_H_
#undef ASM_X86__UNISTD_64_H
#define __SYSCALL(nr, sym) [nr] = 1,
static char syscalls[] = {
#include <asm/unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/syscall_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
#define __NO_STUBS

#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
#undef _ASM_X86_64_UNISTD_H_
#undef ASM_X86__UNISTD_64_H
#include <asm/unistd_64.h>

#undef __SYSCALL
#define __SYSCALL(nr, sym) [nr] = sym,
#undef _ASM_X86_64_UNISTD_H_
#undef ASM_X86__UNISTD_64_H

typedef void (*sys_call_ptr_t)(void);

Expand Down
6 changes: 3 additions & 3 deletions include/asm-x86/desc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ASM_DESC_H_
#define _ASM_DESC_H_
#ifndef ASM_X86__DESC_H
#define ASM_X86__DESC_H

#ifndef __ASSEMBLY__
#include <asm/desc_defs.h>
Expand Down Expand Up @@ -397,4 +397,4 @@ static inline void set_system_gate_ist(int n, void *addr, unsigned ist)

#endif /* __ASSEMBLY__ */

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

#ifndef __SYSCALL
#define __SYSCALL(a, b)
Expand Down Expand Up @@ -676,4 +676,4 @@ __SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime)
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
#endif /* __KERNEL__ */

#endif /* _ASM_X86_64_UNISTD_H_ */
#endif /* ASM_X86__UNISTD_64_H */

0 comments on commit a318631

Please sign in to comment.