From: Maurizio Lombardi Date: Thu, 21 May 2026 15:37:16 +0000 (+0200) Subject: nvme-core: fix unsigned comparison warning in nvme_wait_freeze_timeout X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6022a5330fa2eabce7f20a23200e14a771640f1a;p=thirdparty%2Fkernel%2Flinux.git nvme-core: fix unsigned comparison warning in nvme_wait_freeze_timeout 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. Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202605211257.STzj2Ujv-lkp@intel.com/ Fixes: 23b6d2cbf75f ("nvme: remove redundant timeout argument from nvme_wait_freeze_timeout") Signed-off-by: Maurizio Lombardi Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 10f154529334c..fb14a208febee 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -5256,7 +5256,7 @@ EXPORT_SYMBOL_GPL(nvme_unfreeze); int nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl) { - unsigned long timeout = ctrl->io_timeout; + long timeout = ctrl->io_timeout; struct nvme_ns *ns; int srcu_idx;