* [PATCH 1/1] thermal: cpu_cooling: Make 'notify_device' static
@ 2012-11-15 6:49 Sachin Kamat
2012-11-15 7:43 ` Zhang Rui
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-11-15 6:49 UTC (permalink / raw)
To: linux-pm; +Cc: rui.zhang, hongbo.zhang, sachin.kamat, patches
Silences the following sparse warning:
drivers/thermal/cpu_cooling.c:67:31: warning:
symbol 'notify_device' was not declared. Should it be static?
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/thermal/cpu_cooling.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 392d57d..6f94c2c 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -64,7 +64,7 @@ static unsigned int cpufreq_dev_count;
/* notify_table passes value to the CPUFREQ_ADJUST callback function. */
#define NOTIFY_INVALID NULL
-struct cpufreq_cooling_device *notify_device;
+static struct cpufreq_cooling_device *notify_device;
/**
* get_idr - function to get a unique id.
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] thermal: cpu_cooling: Make 'notify_device' static
2012-11-15 6:49 [PATCH 1/1] thermal: cpu_cooling: Make 'notify_device' static Sachin Kamat
@ 2012-11-15 7:43 ` Zhang Rui
0 siblings, 0 replies; 2+ messages in thread
From: Zhang Rui @ 2012-11-15 7:43 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-pm, hongbo.zhang, patches
On Thu, 2012-11-15 at 12:19 +0530, Sachin Kamat wrote:
> Silences the following sparse warning:
>
> drivers/thermal/cpu_cooling.c:67:31: warning:
> symbol 'notify_device' was not declared. Should it be static?
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
applied to therml-next.
thanks,
rui
> ---
> drivers/thermal/cpu_cooling.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
> index 392d57d..6f94c2c 100644
> --- a/drivers/thermal/cpu_cooling.c
> +++ b/drivers/thermal/cpu_cooling.c
> @@ -64,7 +64,7 @@ static unsigned int cpufreq_dev_count;
>
> /* notify_table passes value to the CPUFREQ_ADJUST callback function. */
> #define NOTIFY_INVALID NULL
> -struct cpufreq_cooling_device *notify_device;
> +static struct cpufreq_cooling_device *notify_device;
>
> /**
> * get_idr - function to get a unique id.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-15 7:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15 6:49 [PATCH 1/1] thermal: cpu_cooling: Make 'notify_device' static Sachin Kamat
2012-11-15 7:43 ` Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).