[PATCH] create struct compat_timex and use it everywhere
We had a copy of the compatibility version of struct timex in each 64 bit architecture. This patch just creates a global one and replaces all the usages of the old ones. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: Kyle McMartin <kyle@parisc-linux.org> Acked-by: Tony Luck <tony.luck@intel.com> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
eb76b3fda1
commit
88959ea968
@ -1159,22 +1159,9 @@ out:
|
||||
|
||||
/* Handle adjtimex compatibility. */
|
||||
|
||||
struct timex32 {
|
||||
u32 modes;
|
||||
s32 offset, freq, maxerror, esterror;
|
||||
s32 status, constant, precision, tolerance;
|
||||
struct compat_timeval time;
|
||||
s32 tick;
|
||||
s32 ppsfreq, jitter, shift, stabil;
|
||||
s32 jitcnt, calcnt, errcnt, stbcnt;
|
||||
s32 :32; s32 :32; s32 :32; s32 :32;
|
||||
s32 :32; s32 :32; s32 :32; s32 :32;
|
||||
s32 :32; s32 :32; s32 :32; s32 :32;
|
||||
};
|
||||
|
||||
extern int do_adjtimex(struct timex *);
|
||||
|
||||
asmlinkage int sys32_adjtimex(struct timex32 __user *utp)
|
||||
asmlinkage int sys32_adjtimex(struct compat_timex __user *utp)
|
||||
{
|
||||
struct timex txc;
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user