ALSA: hdac: Explicitly add io.h
PATCH 1/1 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':
Quoted 2 lines
Quoted 2 lines
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':
Quoted 2 lines
Quoted 2 lines
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
--- sound/hda/ext/hdac_ext_bus.c | 1 + 1 file changed, 1 insertion(+)
sound/hda/ext/hdac_ext_bus.c +1 -0
@@ -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" );
Signature · 1 line
2.4.3
Takashi Iwai
AppliedQuoted 13 lines · Vinod Koul
Compiling the hdac extended core on arm fails with below error:
sound/hda/ext/hdac_ext_bus.c: In function 'hdac_ext_writel':Quoted 2 lines
Quoted 2 lines
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':Quoted 2 lines
Quoted 2 lines
sound/hda/ext/hdac_ext_bus.c:34:2: error: implicit declaration of function+'readl' [-Werror=implicit-function-declaration]
Quoted 8 lines
return readl(addr);This is fixed by explicitly including
io.hFixes 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]>
Applied, thanks.
Takashi
Quoted 19 lines
--- sound/hda/ext/hdac_ext_bus.c | 1 + 1 file changed, 1 insertion(+)sound/hda/ext/hdac_ext_bus.c +1
-0@@ -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" );Signature · 1 line
2.4.3