mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
dmaengine: qcom: bam_dma: fix invalid assignment warning
Building kernel with W=1 throws below invalid assignment warnings. bam_dma.c:676:44: warning: invalid assignment: += bam_dma.c:676:44: left side has type unsigned long bam_dma.c:676:44: right side has type restricted __le16 bam_dma.c:921:41: warning: invalid assignment: += bam_dma.c:921:41: left side has type unsigned long bam_dma.c:921:41: right side has type restricted __le16 Fix them!. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
60cc43fc88
commit
5c63de1eaa
1 changed files with 3 additions and 2 deletions
|
@ -665,7 +665,7 @@ static struct dma_async_tx_descriptor *bam_prep_slave_sg(struct dma_chan *chan,
|
||||||
remainder = 0;
|
remainder = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
async_desc->length += desc->size;
|
async_desc->length += le16_to_cpu(desc->size);
|
||||||
desc++;
|
desc++;
|
||||||
} while (remainder > 0);
|
} while (remainder > 0);
|
||||||
}
|
}
|
||||||
|
@ -910,7 +910,8 @@ static enum dma_status bam_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (i = 0; i < async_desc->num_desc; i++)
|
for (i = 0; i < async_desc->num_desc; i++)
|
||||||
residue += async_desc->curr_desc[i].size;
|
residue += le16_to_cpu(
|
||||||
|
async_desc->curr_desc[i].size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue