diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-07-02 12:01:31 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-07-02 12:01:31 -0400 |
commit | 27eb2c4b3d3e13f376a359e293c212a2e9407af5 (patch) | |
tree | 556aa7b5cd6eeb4214dec129c789515157187010 /include/linux/linkage.h | |
parent | 5705b8aca5a80141de5637ff0e23b31b26f2c5bf (diff) | |
parent | 67bf12ca50d524f9e225347fe63533562e2004de (diff) |
Merge branch 'next' into for-linus
Prepare first set of updates for 3.11 merge window.
Diffstat (limited to 'include/linux/linkage.h')
-rw-r--r-- | include/linux/linkage.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 807f1e533226..d3e8ad23a8e0 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #define _LINUX_LINKAGE_H | 2 | #define _LINUX_LINKAGE_H |
3 | 3 | ||
4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
5 | #include <linux/stringify.h> | ||
6 | #include <linux/export.h> | ||
5 | #include <asm/linkage.h> | 7 | #include <asm/linkage.h> |
6 | 8 | ||
7 | #ifdef __cplusplus | 9 | #ifdef __cplusplus |
@@ -14,6 +16,20 @@ | |||
14 | #define asmlinkage CPP_ASMLINKAGE | 16 | #define asmlinkage CPP_ASMLINKAGE |
15 | #endif | 17 | #endif |
16 | 18 | ||
19 | #ifndef cond_syscall | ||
20 | #define cond_syscall(x) asm( \ | ||
21 | ".weak " VMLINUX_SYMBOL_STR(x) "\n\t" \ | ||
22 | ".set " VMLINUX_SYMBOL_STR(x) "," \ | ||
23 | VMLINUX_SYMBOL_STR(sys_ni_syscall)) | ||
24 | #endif | ||
25 | |||
26 | #ifndef SYSCALL_ALIAS | ||
27 | #define SYSCALL_ALIAS(alias, name) asm( \ | ||
28 | ".globl " VMLINUX_SYMBOL_STR(alias) "\n\t" \ | ||
29 | ".set " VMLINUX_SYMBOL_STR(alias) "," \ | ||
30 | VMLINUX_SYMBOL_STR(name)) | ||
31 | #endif | ||
32 | |||
17 | #define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) | 33 | #define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) |
18 | #define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE) | 34 | #define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE) |
19 | 35 | ||