Message ID | 20240408170426.9285-9-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm: Increase COMPILE_TEST=y coverage | expand |
On Mon, Apr 8, 2024 at 10:04 AM Ville Syrjala <ville.syrjala@linux.intel.com> wrote: > > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Include linux/io.h for readl()/writel(). > > When built on x86_64 w/ COMPILE_TEST=y: > ../drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h:93:16: error: implicit declaration of function ‘readl’ [-Werror=implicit-function-declaration] > 93 | orig = readl(addr); > | ^~~~~ > ../drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h:96:9: error: implicit declaration of function ‘writel’ [-Werror=implicit-function-declaration] > 96 | writel(tmp, addr); > | ^~~~~~ > > Cc: Xinliang Liu <xinliang.liu@linaro.org> > Cc: Tian Tao <tiantao6@hisilicon.com> > Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com> > Cc: Sumit Semwal <sumit.semwal@linaro.org> > Cc: Yongqin Liu <yongqin.liu@linaro.org> > Cc: John Stultz <jstultz@google.com> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: John Stultz <jstultz@google.com>
diff --git a/drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h b/drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h index d79fc031e53d..a87d1135856f 100644 --- a/drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h +++ b/drivers/gpu/drm/hisilicon/kirin/dw_dsi_reg.h @@ -7,6 +7,8 @@ #ifndef __DW_DSI_REG_H__ #define __DW_DSI_REG_H__ +#include <linux/io.h> + #define MASK(x) (BIT(x) - 1) /*