]> git.baikalelectronics.ru Git - kernel.git/commit
media: vivid: print time in y2038-safe way
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 16:46:17 +0000 (11:46 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:13:16 +0000 (11:13 -0500)
commit5a71e23eea77429c47f27f27c204b953e5f1fe6a
tree3f70a95249406906351c0e0b7c6febde94665dc8
parent9e21b635bcbef4076134b7ae4a59e5b68e503d64
media: vivid: print time in y2038-safe way

time_to_tm() takes a time_t value that overflows in 2038 on 32-bit
systems. time64_to_tm() doesn't have this problem, so let's use that in
combination with ktime_get_real_seconds() to read a 64-bit time
value.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-rds-gen.c
drivers/media/platform/vivid/vivid-vbi-gen.c