From: Mauro Carvalho Chehab Date: Wed, 24 Nov 2021 11:56:50 +0000 (+0000) Subject: media: mtk-mdp: address a clang warning X-Git-Tag: v5.17-rc1~171^2~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=440aae04f38bf5f5fe620783fd9effa57a0a9ae4;p=thirdparty%2Fkernel%2Flinux.git media: mtk-mdp: address a clang warning The typecasts at the dvb-core generate clang warnings when W=1 is enabled. Such warning is harmless, but it causes the build to break with CONFIG_WERROR and W=1 with clang, so do the cast on a way that it won't produce warnings anymore. Reviewed-by: Arnd Bergmann Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c index 976aa1f4829b8..3d38793aaa25a 100644 --- a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c +++ b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c @@ -148,7 +148,7 @@ static int mtk_mdp_probe(struct platform_device *pdev) continue; } - comp_type = (enum mtk_mdp_comp_type)of_id->data; + comp_type = (uintptr_t)of_id->data; comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); if (!comp) {