From patchwork Fri Aug 2 06:32:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 19498 X-Patchwork-Delegate: sylvester.nawrocki@gmail.com Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1V59Ab-0003IV-0d; Fri, 02 Aug 2013 08:49:01 +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.72/mailfrontend-5) with esmtp id 1V59AZ-0006Pm-6m; Fri, 02 Aug 2013 08:49:00 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755635Ab3HBGsz (ORCPT + 1 other); Fri, 2 Aug 2013 02:48:55 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:48816 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466Ab3HBGsy (ORCPT ); Fri, 2 Aug 2013 02:48:54 -0400 Received: by mail-pa0-f51.google.com with SMTP id lf11so332966pab.24 for ; Thu, 01 Aug 2013 23:48:53 -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:in-reply-to:references :x-gm-message-state; bh=M2vRUuW5HhDVNY4qdoGvf3DdDuGNPRUXkB2FWISTkyY=; b=kEepnq3NJ9Ux7vyk1B5ivJSdg1GzE1I5uwBQggyQNYOUDs8s8zJ1dgfKwq1Lb6y4ji /1tkpfinOsE4tk1PIJS2bSf5IuW0q19LstjRpzTT5az4QKKX3fgsHumesNBS649rNJ0I 1ds5DxFhQE85dPJzKltXKNvZQdwCbEHB3EJUwzf9dTdV4pYdX4/HhirC8X5pL/PVm98w qujr8+c9qTHw19rdZa+eze3VCeiiryUO20T233YxmwFcrglE1O/lDhBGlrhx8x+EXGFB Sh6NVpAgd+PMK2EUjY0LoZSgfAtUPPHBUydFqj6L9FW7sm4Vxbb6BZwL+Kmbwj8ZeWNJ XBXA== X-Received: by 10.66.102.41 with SMTP id fl9mr8712076pab.169.1375426133373; Thu, 01 Aug 2013 23:48:53 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id 7sm5068399paf.22.2013.08.01.23.48.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 23:48:52 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] [media] exynos4-is: Annotate unused functions Date: Fri, 2 Aug 2013 12:02:13 +0530 Message-Id: <1375425134-17080-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1375425134-17080-1-git-send-email-sachin.kamat@linaro.org> References: <1375425134-17080-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkdYc9NM1NWjtOv4rRliMttt/W1skK9M/2S9c/BWP0pSq39hO7KDkluSjo0gs7jIdG4C4oh Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.8.2.63634 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_1700_1799 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' __is_set_init_isp_aa and fimc_is_hw_set_tune currently do not have any callers. However these functions may be used in the future. Hence instead of deleting them, staticize and annotate them with __maybe_unused flag to avoid compiler warnings. Signed-off-by: Sachin Kamat --- drivers/media/platform/exynos4-is/fimc-is-param.c | 2 +- drivers/media/platform/exynos4-is/fimc-is-regs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is-param.c b/drivers/media/platform/exynos4-is/fimc-is-param.c index a353be0..9bf3ddd 100644 --- a/drivers/media/platform/exynos4-is/fimc-is-param.c +++ b/drivers/media/platform/exynos4-is/fimc-is-param.c @@ -287,7 +287,7 @@ void __is_set_sensor(struct fimc_is *is, int fps) fimc_is_set_param_bit(is, PARAM_ISP_OTF_INPUT); } -void __is_set_init_isp_aa(struct fimc_is *is) +static void __maybe_unused __is_set_init_isp_aa(struct fimc_is *is) { struct isp_param *isp; diff --git a/drivers/media/platform/exynos4-is/fimc-is-regs.c b/drivers/media/platform/exynos4-is/fimc-is-regs.c index 63c68ec..cf2e13a 100644 --- a/drivers/media/platform/exynos4-is/fimc-is-regs.c +++ b/drivers/media/platform/exynos4-is/fimc-is-regs.c @@ -96,7 +96,7 @@ int fimc_is_hw_set_param(struct fimc_is *is) return 0; } -int fimc_is_hw_set_tune(struct fimc_is *is) +static int __maybe_unused fimc_is_hw_set_tune(struct fimc_is *is) { fimc_is_hw_wait_intmsr0_intmsd0(is);