]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: remove 'struct timespec' usage
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 11:46:57 +0000 (12:46 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 5 Dec 2017 06:51:08 +0000 (07:51 +0100)
commit3264cbc198b76d0d21560592c73eaecc0cf49a1b
treefabfc9e5d31d92d2ade27caa65fd784f92dbb1d8
parent1d28c9e4baf71c64448be2a589a9960fa189041c
s390/dasd: remove 'struct timespec' usage

getnstimeofday() and timespec are deprecated since they can
overflow on 32-bit architectures. This simply changes to the
explicitly typed timespec64 version that doesn't have that
problem.

It would be nice to also convert to monotonic timestamps
and call ktime_get_ts64() rather than ktime_get_real_ts64(),
but that would be a user-visible change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_int.h