From patchwork Sat May 25 11:25:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2613281 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A47263FD4E for ; Sat, 25 May 2013 11:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755817Ab3EYL1h (ORCPT ); Sat, 25 May 2013 07:27:37 -0400 Received: from mail-bk0-f51.google.com ([209.85.214.51]:62486 "EHLO mail-bk0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755776Ab3EYL1h (ORCPT ); Sat, 25 May 2013 07:27:37 -0400 Received: by mail-bk0-f51.google.com with SMTP id ji1so833218bkc.38 for ; Sat, 25 May 2013 04:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=MnqiMqbdEvUEBVZSze7n56YI5CwfNka5xaUGByXmTl4=; b=ZkTeZO4JqCK4V6vbcIUeZIA5NVv395pcfMmdQKjlL0Bo1Cr8VLZojee6VNCFztbHdC J5Nex60Ubh9heWFFdPZiqaAhPXvU3oRVqMGruRvYz707BOGg3DPcSVnvQ3T0l+d+d6h1 bM9h9VfKGdtq0D5zerZo0X2v3leBYe4iyNKS8aDrmvhEcECy0NhNAPRO7zPkOQQj2dlt Y51QgTEs2ZUXdhwkWtzomSxXScywHC1LWhm6ME251AlTUXbYOTIkmyId8iWjQOF4hgsF BwScEEI19DHRJMIRXX1WsBQo9EQhYgXqWnkdow7zURZd2IsahUQCoSeSqrD3yIie4Ymo Qahg== X-Received: by 10.204.115.194 with SMTP id j2mr1093325bkq.181.1369481255695; Sat, 25 May 2013 04:27:35 -0700 (PDT) Received: from localhost.localdomain (093105185086.warszawa.vectranet.pl. [93.105.185.86]) by mx.google.com with ESMTPSA id b12sm5522266bkz.0.2013.05.25.04.27.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 25 May 2013 04:27:34 -0700 (PDT) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: a.hajda@samsung.com, arun.kk@samsung.com, k.debski@samsung.com, t.stanislaws@samsung.com, Sylwester Nawrocki Subject: [PATCH 5/5] s5p-mfc: Remove unused s5p_mfc_get_decoded_status_v6() function Date: Sat, 25 May 2013 13:25:55 +0200 Message-Id: <1369481155-30446-6-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1369481155-30446-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1369481155-30446-1-git-send-email-sylvester.nawrocki@gmail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch fixes following compilation warning: CC [M] drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.o drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:1733:12: warning: ‘s5p_mfc_get_decoded_status_v6’ defined but not used It assigns existing but not used s5p_mfc_get_dec_status_v6() function to the get_dec_status callback. It seems the get_dec_status callback is not used anyway, as there is no corresponding s5p_mfc_hw_call(). Cc: Kamil Debski Cc: Arun Kumar K Signed-off-by: Sylwester Nawrocki --- WARNING: This patch has not been tested. --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c index 7e76fce..3f97363 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c @@ -62,12 +62,6 @@ static void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx) /* NOP */ } -static int s5p_mfc_get_dec_status_v6(struct s5p_mfc_dev *dev) -{ - /* NOP */ - return -1; -} - /* Allocate codec buffers */ static int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx) { @@ -1730,7 +1724,7 @@ static int s5p_mfc_get_dspl_status_v6(struct s5p_mfc_dev *dev) return mfc_read(dev, S5P_FIMV_D_DISPLAY_STATUS_V6); } -static int s5p_mfc_get_decoded_status_v6(struct s5p_mfc_dev *dev) +static int s5p_mfc_get_dec_status_v6(struct s5p_mfc_dev *dev) { return mfc_read(dev, S5P_FIMV_D_DECODED_STATUS_V6); }