[PATCH V2] nvme-core: fix unsigned comparison warning in nvme_wait_freeze_timeout

Keith Busch kbusch at kernel.org
Wed May 27 07:17:20 PDT 2026


On Thu, May 21, 2026 at 05:37:16PM +0200, Maurizio Lombardi wrote:
> The timeout variable in nvme_wait_freeze_timeout() is an unsigned type.
> Checking if it is <= 0 triggers a compiler warning because an unsigned
> variable can never be negative.
> 
> Fix this warning by changing the type to long.

Thanks, applied to nvme-7.2.



More information about the Linux-nvme mailing list