Skip to contentSkip to conversation

ASoC: kirkwood: fix compilation warning in kirkwood_dma_open

PATCH Applied Vladimir Murzin 2 participants 2 messages Sep 29, 2013 – Oct 1, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: kirkwood: fix compilation warning in kirkwood_dma_open

writel() supposes the first argument of type unsigned int. This fix the warning:

sound/soc/kirkwood/kirkwood-dma.c: In function 'kirkwood_dma_open':
sound/soc/kirkwood/kirkwood-dma.c:164:3: warning: large integer implicitly truncated to unsigned type [-Woverflow]

---
 sound/soc/kirkwood/kirkwood-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/kirkwood/kirkwood-dma.c +1 -1
index b238434..1135c30 100644
@@ -161,7 +161,7 @@ static int kirkwood_dma_open(struct snd_pcm_substream *substream)
 		 * Enable Error interrupts. We're only ack'ing them but
 		 * it's useful for diagnostics
 		 */
-		writel((unsigned long)-1, priv->io + KIRKWOOD_ERR_MASK);
+		writel((unsigned int)-1, priv->io + KIRKWOOD_ERR_MASK);
 	}
 
 	dram = mv_mbus_dram_info();
Signature · 1 line
1.8.1.5
maintainer Applied
#1 lore raw
Quoted 2 lines · Vladimir Murzin

writel() supposes the first argument of type unsigned int. This fix the warning:

Applied, thanks.