From patchwork Sat Oct 13 11:18:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12208 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1590923FB2 for ; Sat, 13 Oct 2012 11:23:10 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id BB439A18617 for ; Sat, 13 Oct 2012 11:23:09 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so2578776iag.11 for ; Sat, 13 Oct 2012 04:23:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=IZ4D9NPC/kO6ihGNfzyqWPY4p9GqhUtZKCRJIfDSzF0=; b=mARp+b1q7u9a8ZPypkkYAw5t3HsRGr+xAODsX32HkeOfDS/PMF1Lk5jbClFSvP2Nrh 3WzuBUOueEPiekiNfek94OIpdc6ZNgr9Hw4YKYriZVaYZcaYWa222o9tKB6sn2F5MUKU 95vyJLTbtLYa8YLA+h5DFbfh9+iWv6aAF6PTVyxgiNXNhnmJh2XrFd4YkMNmHO2ehaAU lHMA4u/lzB1uILnrKq5ygd775vzCM2AkJf+xJXBZfHOhViIxLdvUz+LsAmEgeP2AbgDc qmzBONRH3CKOdXVmCIeLDoTfyPZF6KS5iZeiEEYv0KWqphFAeBQuzob2QnP8L9tU0t4T 02sA== Received: by 10.50.161.169 with SMTP id xt9mr2825743igb.62.1350127389027; Sat, 13 Oct 2012 04:23:09 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp324143igt; Sat, 13 Oct 2012 04:23:08 -0700 (PDT) Received: by 10.68.218.101 with SMTP id pf5mr20946923pbc.60.1350127388187; Sat, 13 Oct 2012 04:23:08 -0700 (PDT) Received: from mail-da0-f50.google.com (mail-da0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id j4si14721897paz.181.2012.10.13.04.23.07 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2012 04:23:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f50.google.com with SMTP id z20so1991789dae.37 for ; Sat, 13 Oct 2012 04:23:07 -0700 (PDT) Received: by 10.68.229.138 with SMTP id sq10mr21561317pbc.126.1350127387793; Sat, 13 Oct 2012 04:23:07 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id bf6sm403443pab.3.2012.10.13.04.23.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2012 04:23:03 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] s5p-mfc: Fix compilation warning Date: Sat, 13 Oct 2012 16:48:34 +0530 Message-Id: <1350127114-5170-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmweR5jJfwsYwiyd+GwHkTsh789QK6ck/KVWYCQgos0CiAG+nMZAyn2ef085BvG2JAAiE1A 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 --- 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: