]> asedeno.scripts.mit.edu Git - linux.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)
commitbd7a9b3757895c3a2fd64b3f12e438d9190c83d9
treefabfc9e5d31d92d2ade27caa65fd784f92dbb1d8
parentb23481fbfc567fea256a69b307ced283c56aba99
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