* [PATCH 1/1] [media] s5p-mfc: Fix compilation warning
@ 2012-10-13 11:18 Sachin Kamat
2012-10-20 10:05 ` Sylwester Nawrocki
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-10-13 11:18 UTC (permalink / raw)
To: linux-media; +Cc: k.debski, s.nawrocki, sachin.kamat, patches
Added missing const qualifier.
Without this patch compiler gives the following warning:
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
initialization from incompatible pointer type [enabled by default]
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
(near initialization for ‘s5p_mfc_enc_ioctl_ops.vidioc_subscribe_event’)
[enabled by default]
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index 2af6d52..5c1d727 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -1542,7 +1542,7 @@ int vidioc_encoder_cmd(struct file *file, void *priv,
}
static int vidioc_subscribe_event(struct v4l2_fh *fh,
- struct v4l2_event_subscription *sub)
+ const struct v4l2_event_subscription *sub)
{
switch (sub->type) {
case V4L2_EVENT_EOS:
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 1/1] [media] s5p-mfc: Fix compilation warning
2012-10-13 11:18 [PATCH 1/1] [media] s5p-mfc: Fix compilation warning Sachin Kamat
@ 2012-10-20 10:05 ` Sylwester Nawrocki
0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2012-10-20 10:05 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-media, k.debski, s.nawrocki, patches
On 10/13/2012 01:18 PM, Sachin Kamat wrote:
> Added missing const qualifier.
> Without this patch compiler gives the following warning:
>
> drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
> initialization from incompatible pointer type [enabled by default]
> drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
> (near initialization for ‘s5p_mfc_enc_ioctl_ops.vidioc_subscribe_event’)
> [enabled by default]
Applied to my tree. Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-20 10:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-13 11:18 [PATCH 1/1] [media] s5p-mfc: Fix compilation warning Sachin Kamat
2012-10-20 10:05 ` Sylwester Nawrocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).