diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-07 09:42:34 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-14 00:00:43 +0200 |
commit | 3a4d44b6162555070194e486ff6b3799a8d323a2 (patch) | |
tree | 095069878df5402d3616164b523fe7e65e894f6f /include/linux/compat.h | |
parent | fb923c4a3c2ee735755d4a93522150fc35d0ecbd (diff) | |
download | linux-stable-3a4d44b6162555070194e486ff6b3799a8d323a2.tar.gz linux-stable-3a4d44b6162555070194e486ff6b3799a8d323a2.tar.bz2 linux-stable-3a4d44b6162555070194e486ff6b3799a8d323a2.zip |
ntp: Move adjtimex related compat syscalls to native counterparts
Get rid of set_fs() mess and sanitize compat_{get,put}_timex(),
while we are at it.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170607084241.28657-9-viro@ZenIV.linux.org.uk
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r-- | include/linux/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index 1c5f3152cbb5..ecb8dd261d36 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -128,6 +128,10 @@ struct compat_timex { compat_int_t:32; compat_int_t:32; compat_int_t:32; }; +struct timex; +int compat_get_timex(struct timex *, const struct compat_timex __user *); +int compat_put_timex(struct compat_timex __user *, const struct timex *); + #define _COMPAT_NSIG_WORDS (_COMPAT_NSIG / _COMPAT_NSIG_BPW) typedef struct { |