diff mbox series

[v2] perf/amlogic: Fix build error for x86_64 allmodconfig

Message ID 20221122084028.572494-1-jiucheng.xu@amlogic.com (mailing list archive)
State New, archived
Headers show
Series [v2] perf/amlogic: Fix build error for x86_64 allmodconfig | expand

Commit Message

Jiucheng Xu Nov. 22, 2022, 8:40 a.m. UTC
The driver misses including <linux/io.h>. It causes
compiling error "implicit declaration of function
'readl' and 'writel'" when make X86_64 allmodconfig.

Fixs: '2016e2113d35b ("perf/amlogic: Add support for
Amlogic meson G12 SoC DDR PMU driver")'
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Changes v1 -> v2:
  - Add the "Reviewed-by" tag
---
 drivers/perf/amlogic/meson_g12_ddr_pmu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Will Deacon Nov. 22, 2022, 11:19 a.m. UTC | #1
On Tue, 22 Nov 2022 16:40:28 +0800, Jiucheng Xu wrote:
> The driver misses including <linux/io.h>. It causes
> compiling error "implicit declaration of function
> 'readl' and 'writel'" when make X86_64 allmodconfig.
> 
> Amlogic meson G12 SoC DDR PMU driver")'
> 
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/1] perf/amlogic: Fix build error for x86_64 allmodconfig
      https://git.kernel.org/will/c/9d1d5cb32314

Cheers,
diff mbox series

Patch

diff --git a/drivers/perf/amlogic/meson_g12_ddr_pmu.c b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
index c07c34f03cce..932802abd18c 100644
--- a/drivers/perf/amlogic/meson_g12_ddr_pmu.c
+++ b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
@@ -4,6 +4,7 @@ 
  */
 
 #include <linux/err.h>
+#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>