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: 15015 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1TMzoG-0005y7-LE for patchwork@linuxtv.org; Sat, 13 Oct 2012 13:23:12 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1TMzoG-00061h-Cz; Sat, 13 Oct 2012 13:23:12 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927Ab2JMLXK (ORCPT ); Sat, 13 Oct 2012 07:23:10 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:51895 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882Ab2JMLXI (ORCPT ); Sat, 13 Oct 2012 07:23:08 -0400 Received: by mail-pa0-f46.google.com with SMTP id hz1so3556620pad.19 for ; Sat, 13 Oct 2012 04:23:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=IZ4D9NPC/kO6ihGNfzyqWPY4p9GqhUtZKCRJIfDSzF0=; b=omf7utXtq+s5zdQfpOywzzjbJsV9Z5FJT54vKOQH/cJygrd3dGIHkw+kmuS7L569Xy EWcrqMO28xJ3y4fyPKK4yFR4LxTGFaQo8RA9L8kpfyLgzo0m/OE7xk2bi7BPvwR/u8YP oxL9W5+ghW82fEZ+Y/Gpgl00FN4iWc6iMiCkx8PGtrI06xJzNrE9rSkoqa6e7Oh8R8Ou NXCPj2axXkzSdGKA6nBJTQu4LXE4mzsSYE+H5mc5XxzZEotUbrTtpdDoNIur/BFeUT8M 5fToPunlKhJFyIN8p0DKQ8m/4ACHvySAi6DGRKAnx1WKkMoYtQIXN8mbDKCTVE5AV6kA Bz3A== 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: ALoCoQmBxuMxowZgFP+RVWJVVztnUf+epPVmVZZ+ovyKJhD7oWdSaq4npfCeIvMpgn0DAWHob2DX Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.10.13.111227 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1200_1299 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_SUBJECT 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' 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: