drm/msm/dp: include linux/io.h
PATCH 1/1 drm/msm/dp: include linux/io.h
From: Arnd Bergmann <[email protected]>
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);
--- drivers/gpu/drm/msm/dp/dp_panel.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/dp/dp_panel.c +1 -0
@@ -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"
Signature · 1 line
2.39.5
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 | returnreadl_relaxed(panel->link_base + offset);Fixes 9d47325ee063 ("drm/msm/dp: drop the msm_dp_catalog module")Signed-off-by Arnd Bergmann <[email protected]>