From patchwork Tue Nov 20 05:59:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 1770911 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B8109DFF38 for ; Tue, 20 Nov 2012 06:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751564Ab2KTGF0 (ORCPT ); Tue, 20 Nov 2012 01:05:26 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:34378 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528Ab2KTGFY (ORCPT ); Tue, 20 Nov 2012 01:05:24 -0500 Received: by mail-pb0-f46.google.com with SMTP id wy7so4025860pbc.19 for ; Mon, 19 Nov 2012 22:05:24 -0800 (PST) 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:x-gm-message-state; bh=LZIIVYjLv7tGQZjBJt3rBO+Z0288664oNvO1EQqVf3g=; b=J7o/uC8mSKRpAC5HyVlMGHUNavgDec2QyeCqyXWw6z4mf7CJXlIbGoPY5HaXwrM9Ue QWPVRDQpOz0m93RSQ6hHUDA7OhmBuspf2Cr/DGDSRE1FwKMzhrjU4xLd23a0gRsIHZt4 LOmKskF6a+XdS1y/dXh/nVb4IsR9ApnUDwRf2K3rAAlNerU8nrSFe/o49HVZEaZtQDny 7g7xRvShgq3L12mi0hTnqWvrBgvEXMKnKKiyHlSRiBeXipP9KboS38+5TymmfU/6DdVX ONGO+vlhmPg41TUb+z70iDkv/gr1TybsK3Yc2kq/8Wq2nZ3Wpi1/9U9cuWtLBCjB9mTm aQQA== Received: by 10.68.189.5 with SMTP id ge5mr45920785pbc.1.1353391524115; Mon, 19 Nov 2012 22:05:24 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vi9sm7494556pbc.41.2012.11.19.22.05.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 22:05:23 -0800 (PST) From: Tushar Behera To: linux-pm@vger.kernel.org, cpufreq@vger.kernel.org Cc: rjw@sisk.pl, patches@linaro.org Subject: [PATCH] [CPUFREQ] EXYNOS: Use static for functions used in only this file Date: Tue, 20 Nov 2012 11:29:14 +0530 Message-Id: <1353391154-32524-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmOzKkpNGqP1ZekMODDq36FSwLv2cPEKHwbV7VMfvS1h0z96yN59AJE7YQWGoM3bFThGc2Y Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fixes following sparse error. drivers/cpufreq/exynos-cpufreq.c:34:5: warning: symbol 'exynos_verify_speed' was not declared. Should it be static? drivers/cpufreq/exynos-cpufreq.c:40:14: warning: symbol 'exynos_getspeed' was not declared. Should it be static? Signed-off-by: Tushar Behera --- drivers/cpufreq/exynos-cpufreq.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index af2d81e..eb057bf 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -31,13 +31,13 @@ static unsigned int locking_frequency; static bool frequency_locked; static DEFINE_MUTEX(cpufreq_lock); -int exynos_verify_speed(struct cpufreq_policy *policy) +static int exynos_verify_speed(struct cpufreq_policy *policy) { return cpufreq_frequency_table_verify(policy, exynos_info->freq_table); } -unsigned int exynos_getspeed(unsigned int cpu) +static unsigned int exynos_getspeed(unsigned int cpu) { return clk_get_rate(exynos_info->cpu_clk) / 1000; }