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: 18732 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E715C248E6 for ; Fri, 2 Aug 2013 06:48:55 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l12sf332309yen.6 for ; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-removed-original-auth :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=M2vRUuW5HhDVNY4qdoGvf3DdDuGNPRUXkB2FWISTkyY=; b=DucgNvbAhyy3VswvlSq1UgSaih3XLx6eIgNOvkBQATJ0xN9TGHo4ntivBt3KUh+YPk mwuSOx5fXhhqP86oElnOLkoAiSNSUu/7jYbUmKKsNyTNjRYpN2R17clj1Q105WnuBYVd VT39t3ipvB7fofUXAdoaGRiKi68D/zt2+E7+IHIyb7+tkP0PRbTujyV7NQHbY98X/Ove X6CEV2boCAxNCoOGCAnbqXWnGaABLZaEh61+ePRYyGfBjTbntPZ2Ap56klHR6fEzrsfq mGLSjJkpEfNND6T9p25XnRDhjsutbhiXDZIe6Zgr95/LtsQldc/FPxvusbsHU4P5pbrG RNEQ== X-Received: by 10.236.194.33 with SMTP id l21mr2187620yhn.42.1375426135637; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.59.74 with SMTP id x10ls1433028qeq.9.gmail; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) X-Received: by 10.52.107.201 with SMTP id he9mr1248034vdb.106.1375426135527; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id xk1si1539427vdc.114.2013.08.01.23.48.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 23:48:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so250317vbf.35 for ; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr1570273vcb.8.1375426135401; Thu, 01 Aug 2013 23:48:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp340523vcb; Thu, 1 Aug 2013 23:48:54 -0700 (PDT) X-Received: by 10.66.186.204 with SMTP id fm12mr8480105pac.189.1375426133816; Thu, 01 Aug 2013 23:48:53 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id zr1si5536309pbc.120.2013.08.01.23.48.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 23:48:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lj1so337817pab.1 for ; Thu, 01 Aug 2013 23:48:53 -0700 (PDT) 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: ALoCoQkRiJLMzb21+BrVeKKrQsHZtUCzyc1XVXSrjxr/f7M1AsJ7A4lJ8GAy3PayP/MoGWGGzuYx X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , __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);