Skip to content

Commit 5d9d16e

Browse files
davejiangvinodkoul
authored andcommitted
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: 7930d85 ("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>
1 parent d486022 commit 5d9d16e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/idxd/submit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ static void llist_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie,
150150
*/
151151
int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc)
152152
{
153-
int rc, retries = 0;
153+
unsigned int retries = 0;
154+
int rc;
154155

155156
do {
156157
rc = enqcmds(portal, desc);

0 commit comments

Comments
 (0)