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: 12970 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D41F123E13 for ; Tue, 20 Nov 2012 06:05:25 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 712A3A18946 for ; Tue, 20 Nov 2012 06:05:25 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so7695736iej.11 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=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=LZIIVYjLv7tGQZjBJt3rBO+Z0288664oNvO1EQqVf3g=; b=hdnY3JaYru4Eyb+Is3OsyCJG02P96LluZ37cCnkn83sbP5YziRZTZq8Uu6WkdMcxrb /0O04MhEDgWlMIai/GYKDz39iSSGSDntqs2SGzXAFwKQM8Rbqm4QnWYXsV2gymD+Es0p azG7wMgN6yTSggTgc/Kurxv+SYUPfwEDsD2TOs0fL/myMvOK9tGO9hVq6Hmkokd6XfLm UGs7UCFElrJLvgZVtlKh91m57BmnlY4Srmz/L35gVuIYFoJJlG6yO5fbhQxgeJ9QYmUw xY1MS3KHXM4vZd1PI8yQPxl2JtrlS5UslPc4InRZG1fvnicq5d9JhjYpVN9Jo9Q6dEcB pFXw== Received: by 10.50.186.199 with SMTP id fm7mr8761695igc.62.1353391524921; Mon, 19 Nov 2012 22:05:24 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp274127igt; Mon, 19 Nov 2012 22:05:24 -0800 (PST) Received: by 10.68.218.97 with SMTP id pf1mr45746024pbc.96.1353391524418; Mon, 19 Nov 2012 22:05:24 -0800 (PST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id oi10si16836155pbb.218.2012.11.19.22.05.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 22:05:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.43; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f43.google.com with SMTP id fb10so1582474pad.16 for ; Mon, 19 Nov 2012 22:05:24 -0800 (PST) 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: ALoCoQmaonx1kTmGaMfM7xKviWq4z9rGykn+V672sJLrp3NrnNuu35DcCQYAi+2F2Kwv44/yywn3 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; }