diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-26 03:18:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-02 13:03:17 -0400 |
commit | d2331c991354a50bf65d114b2e88d77980223035 (patch) | |
tree | bf49b0b7c085cdb35785b6c9422fa028ae86cfba | |
parent | 9b2e0e70ac256593d9eefc070f9b3f47fbb9f3e2 (diff) |
[media] exynos-gsc: Add missing static storage class specifiers
Fixes the following warnings:
drivers/media/platform/exynos-gsc/gsc-core.c:313:5: warning:
symbol 'get_plane_info' was not declared. Should it be static?
drivers/media/platform/exynos-gsc/gsc-core.c:746:28: warning:
symbol 'gsc_ctrl_ops' was not declared. Should it be static?
drivers/media/platform/exynos-gsc/gsc-m2m.c:102:5: warning:
symbol 'gsc_fill_addr' was not declared. Should it be static?
drivers/media/platform/exynos-gsc/gsc-m2m.c:252:16: warning:
symbol 'gsc_m2m_qops' was not declared. Should it be static?
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/platform/exynos-gsc/gsc-core.c | 4 | ||||
-rw-r--r-- | drivers/media/platform/exynos-gsc/gsc-m2m.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 90a6c55b4d08..bfec9e65aefb 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c | |||
@@ -310,7 +310,7 @@ int gsc_enum_fmt_mplane(struct v4l2_fmtdesc *f) | |||
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | 312 | ||
313 | u32 get_plane_info(struct gsc_frame *frm, u32 addr, u32 *index) | 313 | static u32 get_plane_info(struct gsc_frame *frm, u32 addr, u32 *index) |
314 | { | 314 | { |
315 | if (frm->addr.y == addr) { | 315 | if (frm->addr.y == addr) { |
316 | *index = 0; | 316 | *index = 0; |
@@ -743,7 +743,7 @@ static int gsc_s_ctrl(struct v4l2_ctrl *ctrl) | |||
743 | return ret; | 743 | return ret; |
744 | } | 744 | } |
745 | 745 | ||
746 | const struct v4l2_ctrl_ops gsc_ctrl_ops = { | 746 | static const struct v4l2_ctrl_ops gsc_ctrl_ops = { |
747 | .s_ctrl = gsc_s_ctrl, | 747 | .s_ctrl = gsc_s_ctrl, |
748 | }; | 748 | }; |
749 | 749 | ||
diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c index a4f327ebd15b..3c7f00577bd9 100644 --- a/drivers/media/platform/exynos-gsc/gsc-m2m.c +++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c | |||
@@ -99,7 +99,7 @@ static void gsc_m2m_job_abort(void *priv) | |||
99 | gsc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR); | 99 | gsc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR); |
100 | } | 100 | } |
101 | 101 | ||
102 | int gsc_fill_addr(struct gsc_ctx *ctx) | 102 | static int gsc_fill_addr(struct gsc_ctx *ctx) |
103 | { | 103 | { |
104 | struct gsc_frame *s_frame, *d_frame; | 104 | struct gsc_frame *s_frame, *d_frame; |
105 | struct vb2_buffer *vb = NULL; | 105 | struct vb2_buffer *vb = NULL; |
@@ -249,7 +249,7 @@ static void gsc_m2m_buf_queue(struct vb2_buffer *vb) | |||
249 | v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); | 249 | v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); |
250 | } | 250 | } |
251 | 251 | ||
252 | struct vb2_ops gsc_m2m_qops = { | 252 | static struct vb2_ops gsc_m2m_qops = { |
253 | .queue_setup = gsc_m2m_queue_setup, | 253 | .queue_setup = gsc_m2m_queue_setup, |
254 | .buf_prepare = gsc_m2m_buf_prepare, | 254 | .buf_prepare = gsc_m2m_buf_prepare, |
255 | .buf_queue = gsc_m2m_buf_queue, | 255 | .buf_queue = gsc_m2m_buf_queue, |