diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/linkage.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 147eb01e0d4b..c08c9983e840 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h | |||
@@ -28,17 +28,27 @@ | |||
28 | #define ALIGN __ALIGN | 28 | #define ALIGN __ALIGN |
29 | #define ALIGN_STR __ALIGN_STR | 29 | #define ALIGN_STR __ALIGN_STR |
30 | 30 | ||
31 | #ifndef ENTRY | ||
31 | #define ENTRY(name) \ | 32 | #define ENTRY(name) \ |
32 | .globl name; \ | 33 | .globl name; \ |
33 | ALIGN; \ | 34 | ALIGN; \ |
34 | name: | 35 | name: |
36 | #endif | ||
35 | 37 | ||
36 | #define KPROBE_ENTRY(name) \ | 38 | #define KPROBE_ENTRY(name) \ |
37 | .section .kprobes.text, "ax"; \ | 39 | .section .kprobes.text, "ax"; \ |
38 | .globl name; \ | 40 | ENTRY(name) |
39 | ALIGN; \ | ||
40 | name: | ||
41 | 41 | ||
42 | #ifndef END | ||
43 | #define END(name) \ | ||
44 | .size name, .-name | ||
45 | #endif | ||
46 | |||
47 | #ifndef ENDPROC | ||
48 | #define ENDPROC(name) \ | ||
49 | .type name, @function; \ | ||
50 | END(name) | ||
51 | #endif | ||
42 | 52 | ||
43 | #endif | 53 | #endif |
44 | 54 | ||