Skip to content

Commit dc11ef7

Browse files
committed
[media] s5p_mfc_opr_v6: remove address space removal warnings
Smatch still has 3 warnings for s5p_mfc_opr_v6: drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:2028:18: warning: cast removes address space of expression drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:2034:18: warning: cast removes address space of expression drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:2040:18: warning: cast removes address space of expression Remove them. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent b5e4d33 commit dc11ef7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,25 +2019,25 @@ static int s5p_mfc_get_mvc_view_id_v6(struct s5p_mfc_dev *dev)
20192019
static unsigned int s5p_mfc_get_pic_type_top_v6(struct s5p_mfc_ctx *ctx)
20202020
{
20212021
return s5p_mfc_read_info_v6(ctx,
2022-
(unsigned int) ctx->dev->mfc_regs->d_ret_picture_tag_top);
2022+
(__force unsigned int) ctx->dev->mfc_regs->d_ret_picture_tag_top);
20232023
}
20242024

20252025
static unsigned int s5p_mfc_get_pic_type_bot_v6(struct s5p_mfc_ctx *ctx)
20262026
{
20272027
return s5p_mfc_read_info_v6(ctx,
2028-
(unsigned int) ctx->dev->mfc_regs->d_ret_picture_tag_bot);
2028+
(__force unsigned int) ctx->dev->mfc_regs->d_ret_picture_tag_bot);
20292029
}
20302030

20312031
static unsigned int s5p_mfc_get_crop_info_h_v6(struct s5p_mfc_ctx *ctx)
20322032
{
20332033
return s5p_mfc_read_info_v6(ctx,
2034-
(unsigned int) ctx->dev->mfc_regs->d_display_crop_info1);
2034+
(__force unsigned int) ctx->dev->mfc_regs->d_display_crop_info1);
20352035
}
20362036

20372037
static unsigned int s5p_mfc_get_crop_info_v_v6(struct s5p_mfc_ctx *ctx)
20382038
{
20392039
return s5p_mfc_read_info_v6(ctx,
2040-
(unsigned int) ctx->dev->mfc_regs->d_display_crop_info2);
2040+
(__force unsigned int) ctx->dev->mfc_regs->d_display_crop_info2);
20412041
}
20422042

20432043
static struct s5p_mfc_regs mfc_regs;

0 commit comments

Comments
 (0)