]> git.baikalelectronics.ru Git - kernel.git/commit
net: rxrpc: Replace time_t type with time64_t type
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 29 Aug 2017 09:15:40 +0000 (10:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2017 09:16:00 +0000 (10:16 +0100)
commita6ad00da6285c66aa937b6f8dffb8cf6a19d1ce4
tree3f690f5c6e27d682bb590d52bc09ce41920b9100
parentd0951ad2ca4aee997e7d399d2e8be0b53af907fa
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 <baolin.wang@linaro.org>
Signed-off-by: David Howells <dhowells@redhat.com>
include/keys/rxrpc-type.h
net/rxrpc/ar-internal.h
net/rxrpc/key.c
net/rxrpc/rxkad.c