Re: [PATCH] ata: libata-eh: fix sloppy result type of ata_internal_cmd_timeout()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/18/22 11:38 PM, Sergey Shtylyov wrote:

> 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...

   BTW, the patch saves 64 bytes of object code...

> Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
[...]

MBR, Sergey



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux