diff options
Diffstat (limited to 'include/linux/linkage.h')
-rw-r--r-- | include/linux/linkage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 6c9873f88287..ff203dd02919 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h | |||
@@ -34,6 +34,12 @@ | |||
34 | name: | 34 | name: |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | #ifndef WEAK | ||
38 | #define WEAK(name) \ | ||
39 | .weak name; \ | ||
40 | name: | ||
41 | #endif | ||
42 | |||
37 | #define KPROBE_ENTRY(name) \ | 43 | #define KPROBE_ENTRY(name) \ |
38 | .pushsection .kprobes.text, "ax"; \ | 44 | .pushsection .kprobes.text, "ax"; \ |
39 | ENTRY(name) | 45 | ENTRY(name) |