Please ignore this patch. Thanks, Ksenija
On Tue, Sep 15, 2015 at 10:34 PM, Ksenija Stanojevic <[email protected]> wrote: > Replace get_seconds() which is not y2038 safe on 32bit systems. > > Signed-off-by: Ksenija Stanojevic <[email protected]> > --- > This patch is split out of the previous patch > [PATCH v3] net: rxrpc: Replace time_t with time64_t. > The rest of the changes is yet to be sent as separate patchset. > > net/rxrpc/ar-connection.c | 4 ++-- > net/rxrpc/ar-transport.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/net/rxrpc/ar-connection.c b/net/rxrpc/ar-connection.c > index 6631f4f..692b3e6 100644 > --- a/net/rxrpc/ar-connection.c > +++ b/net/rxrpc/ar-connection.c > @@ -808,7 +808,7 @@ void rxrpc_put_connection(struct rxrpc_connection *conn) > > ASSERTCMP(atomic_read(&conn->usage), >, 0); > > - conn->put_time = get_seconds(); > + conn->put_time = ktime_get_seconds(); > if (atomic_dec_and_test(&conn->usage)) { > _debug("zombie"); > rxrpc_queue_delayed_work(&rxrpc_connection_reap, 0); > @@ -852,7 +852,7 @@ static void rxrpc_connection_reaper(struct work_struct > *work) > > _enter(""); > > - now = get_seconds(); > + now = ktime_get_seconds(); > earliest = ULONG_MAX; > > write_lock_bh(&rxrpc_connection_lock); > diff --git a/net/rxrpc/ar-transport.c b/net/rxrpc/ar-transport.c > index 1976dec..9946467 100644 > --- a/net/rxrpc/ar-transport.c > +++ b/net/rxrpc/ar-transport.c > @@ -189,7 +189,7 @@ void rxrpc_put_transport(struct rxrpc_transport *trans) > > ASSERTCMP(atomic_read(&trans->usage), >, 0); > > - trans->put_time = get_seconds(); > + trans->put_time = ktime_get_seconds(); > if (unlikely(atomic_dec_and_test(&trans->usage))) { > _debug("zombie"); > /* let the reaper determine the timeout to avoid a race with > @@ -226,7 +226,7 @@ static void rxrpc_transport_reaper(struct work_struct > *work) > > _enter(""); > > - now = get_seconds(); > + now = ktime_get_seconds(); > earliest = ULONG_MAX; > > /* extract all the transports that have been dead too long */ > -- > 1.9.1 > _______________________________________________ Y2038 mailing list [email protected] https://lists.linaro.org/mailman/listinfo/y2038
