diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2017-06-24 14:45:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-25 21:58:46 -0400 |
commit | 63a766a1780f9581e8885bdb64270a594a84f81a (patch) | |
tree | db1841f4d4f8922b830ffee5e0695d598edb2bc8 | |
parent | d5b7ffbfbdacc29e4db035f90665951668fa9c58 (diff) |
posix-stubs: Conditionally include COMPAT_SYS_NI defines
These apis only need to be defined if CONFIG_COMPAT is
enabled.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | kernel/time/posix-stubs.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 38f3b20efa29..65878221cbfb 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c | |||
@@ -41,12 +41,6 @@ SYS_NI(setitimer); | |||
41 | #ifdef __ARCH_WANT_SYS_ALARM | 41 | #ifdef __ARCH_WANT_SYS_ALARM |
42 | SYS_NI(alarm); | 42 | SYS_NI(alarm); |
43 | #endif | 43 | #endif |
44 | COMPAT_SYS_NI(timer_create); | ||
45 | COMPAT_SYS_NI(clock_adjtime); | ||
46 | COMPAT_SYS_NI(timer_settime); | ||
47 | COMPAT_SYS_NI(timer_gettime); | ||
48 | COMPAT_SYS_NI(getitimer); | ||
49 | COMPAT_SYS_NI(setitimer); | ||
50 | 44 | ||
51 | /* | 45 | /* |
52 | * We preserve minimal support for CLOCK_REALTIME and CLOCK_MONOTONIC | 46 | * We preserve minimal support for CLOCK_REALTIME and CLOCK_MONOTONIC |
@@ -138,6 +132,13 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, | |||
138 | } | 132 | } |
139 | 133 | ||
140 | #ifdef CONFIG_COMPAT | 134 | #ifdef CONFIG_COMPAT |
135 | COMPAT_SYS_NI(timer_create); | ||
136 | COMPAT_SYS_NI(clock_adjtime); | ||
137 | COMPAT_SYS_NI(timer_settime); | ||
138 | COMPAT_SYS_NI(timer_gettime); | ||
139 | COMPAT_SYS_NI(getitimer); | ||
140 | COMPAT_SYS_NI(setitimer); | ||
141 | |||
141 | COMPAT_SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, | 142 | COMPAT_SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, |
142 | struct compat_timespec __user *, tp) | 143 | struct compat_timespec __user *, tp) |
143 | { | 144 | { |