* [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h>
@ 2020-03-04 8:40 YueHaibing
2020-03-04 13:39 ` Applied "ASoc: amd: acp3x: Add missing include <linux/io.h>" to the asoc tree Mark Brown
2020-03-05 10:07 ` [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> Agrawal, Akshu
0 siblings, 2 replies; 3+ messages in thread
From: YueHaibing @ 2020-03-04 8:40 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, akshu.agrawal, yuehaibing
Cc: alsa-devel, linux-kernel
gcc 7.4.0 build fails:
In file included from sound/soc/amd/acp3x-rt5682-max9836.c:20:0:
sound/soc/amd/raven/acp3x.h: In function rv_readl:
sound/soc/amd/raven/acp3x.h:113:9: error: implicit declaration of function readl; did you mean rv_readl? [-Werror=implicit-function-declaration]
return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
^~~~~
rv_readl
sound/soc/amd/raven/acp3x.h: In function rv_writel:
sound/soc/amd/raven/acp3x.h:118:2: error: implicit declaration of function writel; did you mean rv_writel? [-Werror=implicit-function-declaration]
writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
^~~~~~
rv_writel
Add <linux/io.h> to fix this.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 6b8e4e7db3cd ("ASoC: amd: Add machine driver for Raven based platform")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
sound/soc/amd/acp3x-rt5682-max9836.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 511b8b1..b4f68c5 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -16,6 +16,7 @@
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/input.h>
+#include <linux/io.h>
#include <linux/acpi.h>
#include "raven/acp3x.h"
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Applied "ASoc: amd: acp3x: Add missing include <linux/io.h>" to the asoc tree
2020-03-04 8:40 [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> YueHaibing
@ 2020-03-04 13:39 ` Mark Brown
2020-03-05 10:07 ` [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> Agrawal, Akshu
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-03-04 13:39 UTC (permalink / raw)
To: YueHaibing
Cc: alsa-devel, tiwai, yuehaibing, lgirdwood, linux-kernel,
Hulk Robot, Mark Brown, akshu.agrawal
The patch
ASoc: amd: acp3x: Add missing include <linux/io.h>
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
From 14beaccc36dc9c1afbe6da627b873bf1d6849234 Mon Sep 17 00:00:00 2001
From: YueHaibing <yuehaibing@huawei.com>
Date: Wed, 4 Mar 2020 16:40:57 +0800
Subject: [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h>
gcc 7.4.0 build fails:
In file included from sound/soc/amd/acp3x-rt5682-max9836.c:20:0:
sound/soc/amd/raven/acp3x.h: In function rv_readl:
sound/soc/amd/raven/acp3x.h:113:9: error: implicit declaration of function readl; did you mean rv_readl? [-Werror=implicit-function-declaration]
return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
^~~~~
rv_readl
sound/soc/amd/raven/acp3x.h: In function rv_writel:
sound/soc/amd/raven/acp3x.h:118:2: error: implicit declaration of function writel; did you mean rv_writel? [-Werror=implicit-function-declaration]
writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
^~~~~~
rv_writel
Add <linux/io.h> to fix this.
Fixes: 6b8e4e7db3cd ("ASoC: amd: Add machine driver for Raven based platform")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Message-Id: <20200304084057.44764-1-yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/amd/acp3x-rt5682-max9836.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 521c9ab4c29c..8f71c3f7ef79 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -16,6 +16,7 @@
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/input.h>
+#include <linux/io.h>
#include <linux/acpi.h>
#include "raven/acp3x.h"
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h>
2020-03-04 8:40 [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> YueHaibing
2020-03-04 13:39 ` Applied "ASoc: amd: acp3x: Add missing include <linux/io.h>" to the asoc tree Mark Brown
@ 2020-03-05 10:07 ` Agrawal, Akshu
1 sibling, 0 replies; 3+ messages in thread
From: Agrawal, Akshu @ 2020-03-05 10:07 UTC (permalink / raw)
To: YueHaibing, lgirdwood, broonie, perex, tiwai, akshu.agrawal
Cc: alsa-devel, linux-kernel
On 3/4/2020 2:10 PM, YueHaibing wrote:
> gcc 7.4.0 build fails:
>
> In file included from sound/soc/amd/acp3x-rt5682-max9836.c:20:0:
> sound/soc/amd/raven/acp3x.h: In function rv_readl:
> sound/soc/amd/raven/acp3x.h:113:9: error: implicit declaration of function readl; did you mean rv_readl? [-Werror=implicit-function-declaration]
> return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
> ^~~~~
> rv_readl
> sound/soc/amd/raven/acp3x.h: In function rv_writel:
> sound/soc/amd/raven/acp3x.h:118:2: error: implicit declaration of function writel; did you mean rv_writel? [-Werror=implicit-function-declaration]
> writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
> ^~~~~~
> rv_writel
We don't hit this error and neither with i386-allyesconfig. Would be
interesting to know with which config do you get this error.
>
> Add <linux/io.h> to fix this.
Since readl and writel are used by acp3x.h, it would be better to
include linux/io.h in acp3x.h and avoid including it in every file which
includes acp3x.h
Thanks,
Akshu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-05 10:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04 8:40 [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> YueHaibing
2020-03-04 13:39 ` Applied "ASoc: amd: acp3x: Add missing include <linux/io.h>" to the asoc tree Mark Brown
2020-03-05 10:07 ` [PATCH] ASoc: amd: acp3x: Add missing include <linux/io.h> Agrawal, Akshu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).