From: Ville Syrjälä Date: Mon, 8 Apr 2024 17:04:11 +0000 (+0300) Subject: drm/sti: Include linux/io.h for devm_ioremap() X-Git-Tag: v6.11-rc1~141^2~24^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b48124cc1188844fdc08e8ca22db9595847d632;p=thirdparty%2Fkernel%2Flinux.git drm/sti: Include linux/io.h for devm_ioremap() Include linux/io.h for devm_ioremap(). When built on x86_64 w/ COMPILE_TEST=y: ../drivers/gpu/drm/sti/sti_dvo.c:531:21: error: implicit declaration of function ‘devm_ioremap’ [-Werror=implicit-function-declaration] 531 | dvo->regs = devm_ioremap(dev, res->start, | ^~~~~~~~~~~~ ../drivers/gpu/drm/sti/sti_dvo.c:531:19: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion] 531 | dvo->regs = devm_ioremap(dev, res->start, | ^ Cc: Alain Volmat Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20240408170426.9285-7-ville.syrjala@linux.intel.com Acked-by: Alain Volmat --- diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c index fd1df4ce38526..48a5d49fc1316 100644 --- a/drivers/gpu/drm/sti/sti_dvo.c +++ b/drivers/gpu/drm/sti/sti_dvo.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include