diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-11 06:19:14 -0400 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-07-11 09:26:35 -0400 |
commit | 03dc7a35fcc83a199121a5156c4a7a976b836682 (patch) | |
tree | 3eb64568dea9ef596543d34547009d65b68c4222 /include/net/xfrm.h | |
parent | 386c5680e2e80b012de557cf8326962070e0897b (diff) |
ipv6: xfrm: use 64-bit timestamps
get_seconds() is deprecated because it can overflow on 32-bit
architectures. For the xfrm_state->lastused member, we treat the data
as a 64-bit number already, so we just need to use the right accessor
that works on both 32-bit and 64-bit machines.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index a5378613a49c..1350e2cf0749 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -227,7 +227,7 @@ struct xfrm_state { | |||
227 | long saved_tmo; | 227 | long saved_tmo; |
228 | 228 | ||
229 | /* Last used time */ | 229 | /* Last used time */ |
230 | unsigned long lastused; | 230 | time64_t lastused; |
231 | 231 | ||
232 | struct page_frag xfrag; | 232 | struct page_frag xfrag; |
233 | 233 | ||