Skip to contentSkip to conversation

ASoC: AMD: add missing include

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 11, 2016

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

PATCH 1/1 ASoC: AMD: add missing include

The newly added AMD acp driver is missing an include for linux/io.h and fails to build on ARM:

sound/soc/amd/acp-pcm-dma.c: In function 'acp_reg_read':
sound/soc/amd/acp-pcm-dma.c:83:9: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]

This adds the missing line.

---
This build error also appeared today on linux-next with ARM randconfig

sound/soc/amd/acp-pcm-dma.c +1 -0
index cc8b841b69b6..fa0311e4faed 100644
@@ -17,6 +17,7 @@
 #include <linux/delay.h>
 #include <linux/sizes.h>
 #include <linux/pm_runtime.h>
+#include <linux/io.h>
 
 #include <sound/soc.h>
 
maintainer
#1 lore raw
Quoted 2 lines · Arnd Bergmann

The newly added AMD acp driver is missing an include for linux/io.h and fails to build on ARM:

Guenter sent a fix for this first.