diff options
author | Hanna Hawa <hannah@marvell.com> | 2018-07-24 09:40:30 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-25 08:23:22 -0400 |
commit | ac7b06ba3125d54e2104545c302cb9894eff166d (patch) | |
tree | e89ab83642bbf2304afb5033f5604b4103c41b7c | |
parent | 31d5e6b72439c188ccf09c0b2ba5a7a6d4db9582 (diff) |
dmaengine: mv_xor_v2: use {lower,upper}_32_bits to configure HW descriptor address
>> drivers/dma/mv_xor_v2.c:647:36: sparse: constant 0xFFFF00000000 is so big it is long
include/linux/device.h:678:13: sparse: undefined identifier '__builtin_mul_overflow'
include/linux/device.h:678:13: sparse: call with no type!
Use lower_32_bits and upper_32_bits to set the hw_desq address, instead of
using constant.
Signed-off-by: Hanna Hawa <hannah@marvell.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/mv_xor_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c index d41d916f40fa..8dc0aa4d73ab 100644 --- a/drivers/dma/mv_xor_v2.c +++ b/drivers/dma/mv_xor_v2.c | |||
@@ -642,9 +642,9 @@ static int mv_xor_v2_descq_init(struct mv_xor_v2_device *xor_dev) | |||
642 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_SIZE_OFF); | 642 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_SIZE_OFF); |
643 | 643 | ||
644 | /* write the DESQ address to the DMA enngine*/ | 644 | /* write the DESQ address to the DMA enngine*/ |
645 | writel(xor_dev->hw_desq & 0xFFFFFFFF, | 645 | writel(lower_32_bits(xor_dev->hw_desq), |
646 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BALR_OFF); | 646 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BALR_OFF); |
647 | writel((xor_dev->hw_desq & 0xFFFF00000000) >> 32, | 647 | writel(upper_32_bits(xor_dev->hw_desq), |
648 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BAHR_OFF); | 648 | xor_dev->dma_base + MV_XOR_V2_DMA_DESQ_BAHR_OFF); |
649 | 649 | ||
650 | /* | 650 | /* |