Skip to content

Commit d7fa7b0

Browse files
committed
[media] s5p_mfc_opr_v5: fix smatch warnings
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:266:23: warning: incorrect type in argument 2 (different modifiers) drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:266:23: expected void volatile [noderef] <asn:2>*addr drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:266:23: got void const volatile [noderef] <asn:2>*<noident> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:274:36: warning: incorrect type in argument 1 (different address spaces) drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:274:36: expected void const volatile [noderef] <asn:2>*addr drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:274:36: got void * Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent ca5ea0c commit d7fa7b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,15 @@ static void s5p_mfc_release_dev_context_buffer_v5(struct s5p_mfc_dev *dev)
263263
static void s5p_mfc_write_info_v5(struct s5p_mfc_ctx *ctx, unsigned int data,
264264
unsigned int ofs)
265265
{
266-
writel(data, (ctx->shm.virt + ofs));
266+
writel(data, (volatile void __iomem *)(ctx->shm.virt + ofs));
267267
wmb();
268268
}
269269

270270
static unsigned int s5p_mfc_read_info_v5(struct s5p_mfc_ctx *ctx,
271271
unsigned int ofs)
272272
{
273273
rmb();
274-
return readl(ctx->shm.virt + ofs);
274+
return readl((volatile void __iomem *)(ctx->shm.virt + ofs));
275275
}
276276

277277
static void s5p_mfc_dec_calc_dpb_size_v5(struct s5p_mfc_ctx *ctx)

0 commit comments

Comments
 (0)