diff options
Diffstat (limited to 'arch/um/include/sysdep-x86_64/kernel-offsets.h')
| -rw-r--r-- | arch/um/include/sysdep-x86_64/kernel-offsets.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/um/include/sysdep-x86_64/kernel-offsets.h b/arch/um/include/sysdep-x86_64/kernel-offsets.h index c978b589df41..a307237b7964 100644 --- a/arch/um/include/sysdep-x86_64/kernel-offsets.h +++ b/arch/um/include/sysdep-x86_64/kernel-offsets.h | |||
| @@ -17,16 +17,7 @@ | |||
| 17 | #define OFFSET(sym, str, mem) \ | 17 | #define OFFSET(sym, str, mem) \ |
| 18 | DEFINE(sym, offsetof(struct str, mem)); | 18 | DEFINE(sym, offsetof(struct str, mem)); |
| 19 | 19 | ||
| 20 | #define __NO_STUBS 1 | ||
| 21 | #undef __SYSCALL | ||
| 22 | #undef _ASM_X86_64_UNISTD_H_ | ||
| 23 | #define __SYSCALL(nr, sym) [nr] = 1, | ||
| 24 | static char syscalls[] = { | ||
| 25 | #include <asm/arch/unistd.h> | ||
| 26 | }; | ||
| 27 | |||
| 28 | void foo(void) | 20 | void foo(void) |
| 29 | { | 21 | { |
| 30 | #include <common-offsets.h> | 22 | #include <common-offsets.h> |
| 31 | DEFINE(UM_NR_syscall_max, sizeof(syscalls) - 1); | ||
| 32 | } | 23 | } |
