CONFIG_SYMBOL_PREFIX: cleanup.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-generic / unistd.h
1 #include <uapi/asm-generic/unistd.h>
2 #include <linux/export.h>
3
4 /*
5 * These are required system calls, we should
6 * invert the logic eventually and let them
7 * be selected by default.
8 */
9 #if __BITS_PER_LONG == 32
10 #define __ARCH_WANT_STAT64
11 #define __ARCH_WANT_SYS_LLSEEK
12 #endif
13
14 /*
15 * "Conditional" syscalls
16 *
17 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
18 * but it doesn't work on all toolchains, so we just do it by hand
19 */
20 #ifndef cond_syscall
21 #define cond_syscall(x) asm(".weak\t" VMLINUX_SYMBOL_STR(x) "\n\t" \
22 ".set\t" VMLINUX_SYMBOL_STR(x) "," \
23 VMLINUX_SYMBOL_STR(sys_ni_syscall))
24 #endif