diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-06-16 16:13:12 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-06-16 08:41:43 -0700 |
commit | ce4b461ba2c1247e0508995ff250f156b5310441 (patch) | |
tree | 4657abf3e6773d5e4309a42dc6cc50f56bdfa0f6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 81ce6f3dbbdce2785bba6e0b3c540793725c218d (diff) |
dmaengine: apple-admac: Use {low,upp}er_32_bits() to split 64-bit address
If CONFIG_PHYS_ADDR_T_64BIT is not set:
drivers/dma/apple-admac.c: In function ‘admac_cyclic_write_one_desc’:
drivers/dma/apple-admac.c:213:22: error: right shift count >= width of type [-Werror=shift-count-overflow]
213 | writel_relaxed(addr >> 32, ad->base + REG_DESC_WRITE(channo));
| ^~
Fix this by using the {low,upp}er_32_bits() helper macros to obtain the
address parts.
Reported-by: noreply@ellerman.id.au
Fixes: b127315d9a78c011 ("dmaengine: apple-admac: Add Apple ADMAC driver")
Acked-by: Martin Povišer <povik+lin@cutebit.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20220616141312.1953819-1-geert@linux-m68k.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions