From patchwork Thu Sep 27 10:58:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11754 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 9E38523E57 for ; Thu, 27 Sep 2012 11:02:13 +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 41EB6A18678 for ; Thu, 27 Sep 2012 11:02:13 +0000 (UTC) Received: by ieje10 with SMTP id e10so3816936iej.11 for ; Thu, 27 Sep 2012 04:02:12 -0700 (PDT) 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=LQEOiUJuc1JDYoXs/qJHE/Ce4DBCD2VtqAUJeNl5lWc=; b=XDXxhLJHkKkgb+NA5RiMwnLK+qk0ivGJf5VG2ll9DJB5Pw+ENenbHsHj5fCKLw/9k1 1nE5Ut+PRiw5HfPTWPteiLZOfRRY22uddwCj9mjFgLChW4Mcu7OA50xPsoNfiHU8z3m5 Ur7JOM8KMfmQ3iJi0r4Hd3KQlZOH9b87SaMOsRVFT2W3tOgSpt6hY+pIKny8rWucPJ5w 9EJYkKhfpY9NoacXg9svEw91G6oSpKoCX1PuifqYM8L+bN2LxyyHOSCRLOoyaUef0grM APuurYuJoo8X8B+f18DiZmXW9MibrAdB0zxfG9vvxN2V8nfuj3TPX0+Zu1BnQRfxZUtp ll5g== Received: by 10.50.154.227 with SMTP id vr3mr13761032igb.43.1348743732729; Thu, 27 Sep 2012 04:02:12 -0700 (PDT) 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.184.232 with SMTP id ex8csp409065igc; Thu, 27 Sep 2012 04:02:12 -0700 (PDT) Received: by 10.68.204.137 with SMTP id ky9mr10382780pbc.90.1348743731764; Thu, 27 Sep 2012 04:02:11 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id be10si1875625pab.100.2012.09.27.04.02.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 04:02:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by padhz11 with SMTP id hz11so1422004pad.37 for ; Thu, 27 Sep 2012 04:02:11 -0700 (PDT) Received: by 10.68.228.98 with SMTP id sh2mr10461001pbc.95.1348743730829; Thu, 27 Sep 2012 04:02:10 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vi9sm1887651pbc.41.2012.09.27.04.02.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 04:02:10 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: durgadoss.r@intel.com, rui.zhang@intel.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] thermal: step_wise: Add missing static storage class specifiers Date: Thu, 27 Sep 2012 16:28:12 +0530 Message-Id: <1348743492-30852-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmweGnZH2rrNBpzrWFPJpARzdWYhBdvYwD7lDXfzO64ZSP9MwolKHdi/mFdxdtWXX4Biz9D Fixes the following sparse warnings: drivers/thermal/step_wise.c:153:5: warning: symbol 'step_wise_throttle' was not declared. Should it be static? drivers/thermal/step_wise.c:172:25: warning: symbol 'thermal_gov_step_wise' was not declared. Should it be static? Signed-off-by: Sachin Kamat Acked-by: Durgadoss R --- drivers/thermal/step_wise.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c index 3f9cfcf..1242cff 100644 --- a/drivers/thermal/step_wise.c +++ b/drivers/thermal/step_wise.c @@ -150,7 +150,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) * step. If the zone is 'cooling down' it brings back the performance of * the devices by one step. */ -int step_wise_throttle(struct thermal_zone_device *tz, int trip) +static int step_wise_throttle(struct thermal_zone_device *tz, int trip) { struct thermal_instance *instance; @@ -169,7 +169,7 @@ int step_wise_throttle(struct thermal_zone_device *tz, int trip) return 0; } -struct thermal_governor thermal_gov_step_wise = { +static struct thermal_governor thermal_gov_step_wise = { .name = DEFAULT_THERMAL_GOVERNOR, .throttle = step_wise_throttle, .owner = THIS_MODULE,