diff options
| author | Baolin Wang <[email protected]> | 2017-08-29 10:15:40 +0100 |
|---|---|---|
| committer | David Howells <[email protected]> | 2017-08-29 10:16:00 +0100 |
| commit | 10674a03c633379fadb5b314abde975fba270058 (patch) | |
| tree | 3f690f5c6e27d682bb590d52bc09ce41920b9100 /tools/perf/scripts/python | |
| parent | c8488a8ad7c284b1159973baf536ca58fba0ad36 (diff) | |
net: rxrpc: Replace time_t type with time64_t type
Since the 'expiry' variable of 'struct key_preparsed_payload' has been
changed to 'time64_t' type, which is year 2038 safe on 32bits system.
In net/rxrpc subsystem, we need convert 'u32' type to 'time64_t' type
when copying ticket expires time to 'prep->expiry', then this patch
introduces two helper functions to help convert 'u32' to 'time64_t'
type.
This patch also uses ktime_get_real_seconds() to get current time instead
of get_seconds() which is not year 2038 safe on 32bits system.
Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: David Howells <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions