]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: stop using deprated get_seconds()
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 15:26:47 +0000 (17:26 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 15:57:01 +0000 (11:57 -0400)
commita90ac66f9706c4179cbfe09d5ab515bfd094c7f1
tree4439be2f7e3c7c8f161a2c61b98decb7ec267395
parent644d7ddb1ade9c3dc3c5f08ca2041458ec0827d0
scsi: aacraid: stop using deprated get_seconds()

get_seconds() can overflow on 32-bit architectures and is deprecated
because of that. The use in the aacraid driver has the same problem due to
a limited firmware interface, it also overflows in the year 2106.

This changes all calls to get_seconds() to the non-deprecated
ktime_get_real_seconds(), which unfortunately doesn't solve that problem
but gets rid of one user of the deprecated interface.

[mkp: checkpatch]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/rx.c
drivers/scsi/aacraid/sa.c
drivers/scsi/aacraid/src.c