Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: AMD: Add missing include file

arm:allmodconfig, s390:allmodconfig, sparc64:allmodconfig, and probably
other builds fail with

sound/soc/amd/acp-pcm-dma.c:83:2: error:
implicit declaration of function ‘readl’
sound/soc/amd/acp-pcm-dma.c:88:2: error:
implicit declaration of function ‘writel’

Include linux/io.h explicitly to fix the problem.

Fixes: 7c31335a03b6a ("ASoC: AMD: add AMD ASoC ACP 2.x DMA driver")
Cc: Maruthi Srinivas Bayyavarapu <Maruthi.Bayyavarapu@amd.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Guenter Roeck and committed by
Mark Brown
7cb1dc81 c36d9b3f

+1
+1
sound/soc/amd/acp-pcm-dma.c
··· 15 15 16 16 #include <linux/module.h> 17 17 #include <linux/delay.h> 18 + #include <linux/io.h> 18 19 #include <linux/sizes.h> 19 20 #include <linux/pm_runtime.h> 20 21