diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2013-12-27 17:14:17 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2014-01-20 17:44:05 -0500 |
| commit | 7fb30128527a4220f181c2867edd9ac178175a87 (patch) | |
| tree | 0fa7c94dc3db2e389d4cdb1d79971988bb3ab01e /include/uapi/linux | |
| parent | 79dbbc60493f357912d5f1da5a23147ba0c01c7a (diff) | |
uapi: Use __kernel_long_t in struct timex
x32 adjtimex system call is the same as x86-64 adjtimex system call,
which uses 64-bit integer for long in struct timex. But x32 long is
32 bit. This patch replaces long in struct timex with __kernel_long_t.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1388182464-28428-2-git-send-email-hjl.tools@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/timex.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/uapi/linux/timex.h b/include/uapi/linux/timex.h index a7ea81f13711..92685d826444 100644 --- a/include/uapi/linux/timex.h +++ b/include/uapi/linux/timex.h | |||
| @@ -63,27 +63,27 @@ | |||
| 63 | */ | 63 | */ |
| 64 | struct timex { | 64 | struct timex { |
| 65 | unsigned int modes; /* mode selector */ | 65 | unsigned int modes; /* mode selector */ |
| 66 | long offset; /* time offset (usec) */ | 66 | __kernel_long_t offset; /* time offset (usec) */ |
| 67 | long freq; /* frequency offset (scaled ppm) */ | 67 | __kernel_long_t freq; /* frequency offset (scaled ppm) */ |
| 68 | long maxerror; /* maximum error (usec) */ | 68 | __kernel_long_t maxerror;/* maximum error (usec) */ |
| 69 | long esterror; /* estimated error (usec) */ | 69 | __kernel_long_t esterror;/* estimated error (usec) */ |
| 70 | int status; /* clock command/status */ | 70 | int status; /* clock command/status */ |
| 71 | long constant; /* pll time constant */ | 71 | __kernel_long_t constant;/* pll time constant */ |
| 72 | long precision; /* clock precision (usec) (read only) */ | 72 | __kernel_long_t precision;/* clock precision (usec) (read only) */ |
| 73 | long tolerance; /* clock frequency tolerance (ppm) | 73 | __kernel_long_t tolerance;/* clock frequency tolerance (ppm) |
| 74 | * (read only) | 74 | * (read only) |
| 75 | */ | 75 | */ |
| 76 | struct timeval time; /* (read only, except for ADJ_SETOFFSET) */ | 76 | struct timeval time; /* (read only, except for ADJ_SETOFFSET) */ |
| 77 | long tick; /* (modified) usecs between clock ticks */ | 77 | __kernel_long_t tick; /* (modified) usecs between clock ticks */ |
| 78 | 78 | ||
| 79 | long ppsfreq; /* pps frequency (scaled ppm) (ro) */ | 79 | __kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */ |
| 80 | long jitter; /* pps jitter (us) (ro) */ | 80 | __kernel_long_t jitter; /* pps jitter (us) (ro) */ |
| 81 | int shift; /* interval duration (s) (shift) (ro) */ | 81 | int shift; /* interval duration (s) (shift) (ro) */ |
| 82 | long stabil; /* pps stability (scaled ppm) (ro) */ | 82 | __kernel_long_t stabil; /* pps stability (scaled ppm) (ro) */ |
| 83 | long jitcnt; /* jitter limit exceeded (ro) */ | 83 | __kernel_long_t jitcnt; /* jitter limit exceeded (ro) */ |
| 84 | long calcnt; /* calibration intervals (ro) */ | 84 | __kernel_long_t calcnt; /* calibration intervals (ro) */ |
| 85 | long errcnt; /* calibration errors (ro) */ | 85 | __kernel_long_t errcnt; /* calibration errors (ro) */ |
| 86 | long stbcnt; /* stability limit exceeded (ro) */ | 86 | __kernel_long_t stbcnt; /* stability limit exceeded (ro) */ |
| 87 | 87 | ||
| 88 | int tai; /* TAI offset (ro) */ | 88 | int tai; /* TAI offset (ro) */ |
| 89 | 89 | ||
