]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 11:54:42 +0000 (17:24 +0530)
commit23268de5b321af86b854f409ffedd2842c621ec9
treeab886d5e5e79996f97b9e75bb3f4b9750d8ba09a
parentef9e4ac228705a42d8a769525d95d41a4b785530
dmaengine: idxd: match type for retries var in idxd_enqcmds()

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: 401eb1b2dc5d ("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>
drivers/dma/idxd/submit.c