Skip to content

Commit 5c1071d

Browse files
geertuDinh Nguyen
authored andcommitted
ASoC: rsnd: Silence DMA slave ID compile warning on 64-bit
On arm64: sound/soc/sh/rcar/dma.c: In function 'rsnd_dmaen_init': sound/soc/sh/rcar/dma.c:180:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)id); ^ include/linux/dmaengine.h:1185:75: note: in definition of macro 'dma_request_channel' #define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y) ^ Add an intermediate cast to "uintptr_t" to kill the compile warning. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Mark Brown <[email protected]> (cherry picked from commit 1af2cc6) Signed-off-by: Simon Horman <[email protected]>
1 parent 1b12556 commit 5c1071d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sh/rcar/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int rsnd_dmaen_init(struct rsnd_dai_stream *io,
177177
dma_cap_set(DMA_SLAVE, mask);
178178

179179
dmaen->chan = dma_request_channel(mask, shdma_chan_filter,
180-
(void *)id);
180+
(void *)(uintptr_t)id);
181181
}
182182
if (IS_ERR_OR_NULL(dmaen->chan)) {
183183
dmaen->chan = NULL;

0 commit comments

Comments
 (0)