dmaengine: idxd: match type for retries var in idxd_enqcmds()
authorDave Jiang <dave.jiang@intel.com>
Mon, 18 Apr 2022 21:31:10 +0000 (14:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:41:03 +0000 (14:41 +0200)
commit12b5ce51a12563e6b7ff23d0f1fc5f58185a6190
tree52f250c67e2be2c7c64e8b22effaa29351109495
parentc55797fc4a1ac7163983548ea8e104b2bc601891
dmaengine: idxd: match type for retries var in idxd_enqcmds()

[ Upstream commit 5d9d16e5aa0cf023e600bf716239fd9caa2d4148 ]

wq->enqcmds_retries is defined as unsigned int. However, retries on the
stack is defined as int. Change retries to unsigned int to compare the same
type.

Fixes: 7930d8553575 ("dmaengine: idxd: add knob for enqcmds retries")
Suggested-by: Thiago Macieira <thiago.macieira@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165031747059.3658198.6035308204505664375.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/submit.c