diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-24 08:25:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-26 05:47:49 -0400 |
commit | d7fa7b0e5ffe7f3225158ec59e7040aa6e84d45f (patch) | |
tree | aa56eb8105905cc5e53eb29b663b0255e30631fd | |
parent | ca5ea0c5dfe0e63298eb157d877d19dfe892353f (diff) |
[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>
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c index 96ac14e2fc6e..6234e4d70596 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | |||
@@ -263,7 +263,7 @@ static void s5p_mfc_release_dev_context_buffer_v5(struct s5p_mfc_dev *dev) | |||
263 | static void s5p_mfc_write_info_v5(struct s5p_mfc_ctx *ctx, unsigned int data, | 263 | static void s5p_mfc_write_info_v5(struct s5p_mfc_ctx *ctx, unsigned int data, |
264 | unsigned int ofs) | 264 | unsigned int ofs) |
265 | { | 265 | { |
266 | writel(data, (ctx->shm.virt + ofs)); | 266 | writel(data, (volatile void __iomem *)(ctx->shm.virt + ofs)); |
267 | wmb(); | 267 | wmb(); |
268 | } | 268 | } |
269 | 269 | ||
@@ -271,7 +271,7 @@ static unsigned int s5p_mfc_read_info_v5(struct s5p_mfc_ctx *ctx, | |||
271 | unsigned int ofs) | 271 | unsigned int ofs) |
272 | { | 272 | { |
273 | rmb(); | 273 | rmb(); |
274 | return readl(ctx->shm.virt + ofs); | 274 | return readl((volatile void __iomem *)(ctx->shm.virt + ofs)); |
275 | } | 275 | } |
276 | 276 | ||
277 | static void s5p_mfc_dec_calc_dpb_size_v5(struct s5p_mfc_ctx *ctx) | 277 | static void s5p_mfc_dec_calc_dpb_size_v5(struct s5p_mfc_ctx *ctx) |