drivers/gpu/drm/msm/dp/dp_panel.c | 1 + 1 file changed, 1 insertion(+)
From: Arnd Bergmann <arnd@arndb.de>
The driver started using readl/writel, which are defined in linux/io.h,
so this needs to be included here:
drivers/gpu/drm/msm/dp/dp_panel.c:33:9: error: call to undeclared function 'readl_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
33 | return readl_relaxed(panel->link_base + offset);
Fixes: 9d47325ee063 ("drm/msm/dp: drop the msm_dp_catalog module")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/gpu/drm/msm/dp/dp_panel.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c
index 489e39f6c0ac..ecd5d3665541 100644
--- a/drivers/gpu/drm/msm/dp/dp_panel.c
+++ b/drivers/gpu/drm/msm/dp/dp_panel.c
@@ -2,6 +2,7 @@
/*
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
*/
+#include <linux/io.h>
#include "dp_panel.h"
#include "dp_reg.h"
--
2.39.5
On 25-06-20 14:47:43, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The driver started using readl/writel, which are defined in linux/io.h, > so this needs to be included here: > > drivers/gpu/drm/msm/dp/dp_panel.c:33:9: error: call to undeclared function 'readl_relaxed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 33 | return readl_relaxed(panel->link_base + offset); > > Fixes: 9d47325ee063 ("drm/msm/dp: drop the msm_dp_catalog module") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
© 2016 - 2025 Red Hat, Inc.