diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-02-13 16:50:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-19 11:12:59 -0500 |
commit | 1b25f3b4e18d1acffeb41258a18f13db71da9a7a (patch) | |
tree | 914c89332e2e1b578eff9887f45c73bd1df5d08f /arch/x86/include/asm/linkage.h | |
parent | 95695547a7db44b88a7ee36cf5df188de267e99e (diff) |
x86: linkage - get rid of _X86 macros
Impact: cleanup
There was an attempt to bring build-time checking for
missed ENTRY_X86/END_X86 and KPROBE... pairs. Using
them will add messy in code. Get just rid of them.
This commit could be easily restored if the need appear
in future.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/linkage.h')
-rw-r--r-- | arch/x86/include/asm/linkage.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h index 2ecf0f6fc9e6..9320e2a8a26a 100644 --- a/arch/x86/include/asm/linkage.h +++ b/arch/x86/include/asm/linkage.h | |||
@@ -61,65 +61,5 @@ | |||
61 | #define __ALIGN_STR ".align 16,0x90" | 61 | #define __ALIGN_STR ".align 16,0x90" |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* | ||
65 | * to check ENTRY_X86/END_X86 and | ||
66 | * KPROBE_ENTRY_X86/KPROBE_END_X86 | ||
67 | * unbalanced-missed-mixed appearance | ||
68 | */ | ||
69 | #define __set_entry_x86 .set ENTRY_X86_IN, 0 | ||
70 | #define __unset_entry_x86 .set ENTRY_X86_IN, 1 | ||
71 | #define __set_kprobe_x86 .set KPROBE_X86_IN, 0 | ||
72 | #define __unset_kprobe_x86 .set KPROBE_X86_IN, 1 | ||
73 | |||
74 | #define __macro_err_x86 .error "ENTRY_X86/KPROBE_X86 unbalanced,missed,mixed" | ||
75 | |||
76 | #define __check_entry_x86 \ | ||
77 | .ifdef ENTRY_X86_IN; \ | ||
78 | .ifeq ENTRY_X86_IN; \ | ||
79 | __macro_err_x86; \ | ||
80 | .abort; \ | ||
81 | .endif; \ | ||
82 | .endif | ||
83 | |||
84 | #define __check_kprobe_x86 \ | ||
85 | .ifdef KPROBE_X86_IN; \ | ||
86 | .ifeq KPROBE_X86_IN; \ | ||
87 | __macro_err_x86; \ | ||
88 | .abort; \ | ||
89 | .endif; \ | ||
90 | .endif | ||
91 | |||
92 | #define __check_entry_kprobe_x86 \ | ||
93 | __check_entry_x86; \ | ||
94 | __check_kprobe_x86 | ||
95 | |||
96 | #define ENTRY_KPROBE_FINAL_X86 __check_entry_kprobe_x86 | ||
97 | |||
98 | #define ENTRY_X86(name) \ | ||
99 | __check_entry_kprobe_x86; \ | ||
100 | __set_entry_x86; \ | ||
101 | .globl name; \ | ||
102 | __ALIGN; \ | ||
103 | name: | ||
104 | |||
105 | #define END_X86(name) \ | ||
106 | __unset_entry_x86; \ | ||
107 | __check_entry_kprobe_x86; \ | ||
108 | .size name, .-name | ||
109 | |||
110 | #define KPROBE_ENTRY_X86(name) \ | ||
111 | __check_entry_kprobe_x86; \ | ||
112 | __set_kprobe_x86; \ | ||
113 | .pushsection .kprobes.text, "ax"; \ | ||
114 | .globl name; \ | ||
115 | __ALIGN; \ | ||
116 | name: | ||
117 | |||
118 | #define KPROBE_END_X86(name) \ | ||
119 | __unset_kprobe_x86; \ | ||
120 | __check_entry_kprobe_x86; \ | ||
121 | .size name, .-name; \ | ||
122 | .popsection | ||
123 | |||
124 | #endif /* _ASM_X86_LINKAGE_H */ | 64 | #endif /* _ASM_X86_LINKAGE_H */ |
125 | 65 | ||