From patchwork Thu Sep 27 11:27:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11756 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 C24FF23EFB for ; Thu, 27 Sep 2012 11:31:43 +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 77719A186BF for ; Thu, 27 Sep 2012 11:31:43 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3871474iej.11 for ; Thu, 27 Sep 2012 04:31:43 -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:in-reply-to:references :x-gm-message-state; bh=tW6Q5HsNZBYKkMJCPENylauNDpWXNFEl7DaYsgMQpj8=; b=CVvm0rMk8BuzbcRv8ISwCgIgXZZVoEhOdRDGBcDZaJLptEcYi5tMknN4LclCk3xyWf WXW76xvFJUibN0qIfucFiLE5NqX+bi3Aeq1xFQrpV1aaSdEolq8HMY7soWwfXtQXLCiw WPwImQt+OH1gTjZ9dgjkUTIiwEsX/XhtLWVb0g1Zf/kqnJ4Q7Hpb52ZRcWwcRu976QyV /Et2iqZYziMQbdkldJIh6UDP9szPPh8xLbmpwHIb/lXiqBNnlnASQvdDMsTjEUr3vzd9 nXxjDAti5MR7wQDGePq+V0Ky/SFtZ34FlMoYMP0dkJD6DSsinGQflxlRfZwnHxI0/Bny +/6A== Received: by 10.50.154.227 with SMTP id vr3mr13824570igb.43.1348745503274; Thu, 27 Sep 2012 04:31:43 -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 ex8csp410255igc; Thu, 27 Sep 2012 04:31:42 -0700 (PDT) Received: by 10.68.225.199 with SMTP id rm7mr10704117pbc.150.1348745502723; Thu, 27 Sep 2012 04:31:42 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id wn9si6958181pbc.144.2012.09.27.04.31.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 04:31:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 mail-pb0-f50.google.com with SMTP id md4so1008266pbc.37 for ; Thu, 27 Sep 2012 04:31:42 -0700 (PDT) Received: by 10.68.224.69 with SMTP id ra5mr10538143pbc.114.1348745502501; Thu, 27 Sep 2012 04:31:42 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id jv10sm3709238pbc.23.2012.09.27.04.31.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 04:31:41 -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 2/2] thermal: user_space: Add missing static storage class specifiers Date: Thu, 27 Sep 2012 16:57:54 +0530 Message-Id: <1348745274-15936-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1348745274-15936-1-git-send-email-sachin.kamat@linaro.org> References: <1348745274-15936-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkXL7Vi3nRVt6YRvrFrAODKdwY5miudRquhlpAAaFZdQMTJV58qFiYIEYFTv22IMcXRGtPO Fixes the following sparse warnings: drivers/thermal/user_space.c:38:5: warning: symbol 'notify_user_space' was not declared. Should it be static? drivers/thermal/user_space.c:46:25: warning: symbol 'thermal_gov_user_space' was not declared. Should it be static? Signed-off-by: Sachin Kamat Acked-by: Durgadoss R --- drivers/thermal/user_space.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/user_space.c b/drivers/thermal/user_space.c index fb246b90..6bbb380 100644 --- a/drivers/thermal/user_space.c +++ b/drivers/thermal/user_space.c @@ -35,7 +35,7 @@ * * This function notifies the user space through UEvents. */ -int notify_user_space(struct thermal_zone_device *tz, int trip) +static int notify_user_space(struct thermal_zone_device *tz, int trip) { mutex_lock(&tz->lock); kobject_uevent(&tz->device.kobj, KOBJ_CHANGE); @@ -43,7 +43,7 @@ int notify_user_space(struct thermal_zone_device *tz, int trip) return 0; } -struct thermal_governor thermal_gov_user_space = { +static struct thermal_governor thermal_gov_user_space = { .name = "user_space", .throttle = notify_user_space, .owner = THIS_MODULE,