ata: libata-eh: fix sloppy result type of ata_internal_cmd_timeout()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 18 Jun 2022 20:38:10 +0000 (23:38 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sun, 19 Jun 2022 23:21:57 +0000 (08:21 +0900)
commite06233f9372c396191327790bd38999730869e01
tree6941f7eb2207402725f02f2f382f8ae1a8067aee
parent61176eed36d3a91305df6417be74755703a7db27
ata: libata-eh: fix sloppy result type of ata_internal_cmd_timeout()

ata_internal_cmd_timeout() returns *unsigned long* timeout in ms, however
ata_exec_internal_sg() passes that timeout to msecs_to_jiffies() that takes
just *unsigned int*.  Change ata_internal_cmd_timeout()'s result type to
*unsigned int* as well, also updating the *struct* ata_eh_cmd_timeout_ent
and the command timeout tables -- all timeouts fit into *unsigned int* but
we have to change ULONG_MAX to UINT_MAX...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-eh.c
drivers/ata/libata.h