aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <[email protected]>2015-10-13 14:57:49 +0530
committerTakashi Iwai <[email protected]>2015-10-13 11:33:45 +0200
commit42f2bb1c494543084b764e1ca253c73db910daf2 (patch)
tree967d02156818f17d2736226cd096e67d4a9e98ba
parent601d62959d08a450d4666c728ddd2f47c5ba1cfe (diff)
ALSA: hdac: Explicitly add io.h
Compiling the hdac extended core on arm fails with below error: sound/hda/ext/hdac_ext_bus.c: In function 'hdac_ext_writel': >> sound/hda/ext/hdac_ext_bus.c:29:2: error: implicit declaration of >> function +'writel' [-Werror=implicit-function-declaration] writel(value, addr); ^ sound/hda/ext/hdac_ext_bus.c: In function 'hdac_ext_readl': >> sound/hda/ext/hdac_ext_bus.c:34:2: error: implicit declaration of >> function +'readl' [-Werror=implicit-function-declaration] return readl(addr); This is fixed by explicitly including io.h Fixes: 99463b3a3994 - ('ALSA: hda: provide default bus io ops extended hdac') Reported-by: kbuild test robot <[email protected]> Suggested-by: Mark Brown <[email protected]> Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
-rw-r--r--sound/hda/ext/hdac_ext_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c
index 4449d1a99089..2433f7c81472 100644
--- a/sound/hda/ext/hdac_ext_bus.c
+++ b/sound/hda/ext/hdac_ext_bus.c
@@ -19,6 +19,7 @@
#include <linux/module.h>
#include <linux/slab.h>
+#include <linux/io.h>
#include <sound/hdaudio_ext.h>
MODULE_DESCRIPTION("HDA extended core");