Re: [PATCH 1/1] PM: devfreq: Add missing static storage classspecifier in devfreq.c file

From: MyungJoo Ham
Date: Mon Jun 11 2012 - 01:37:51 EST


> Fixes the following sparse warning:
> drivers/devfreq/devfreq.c:30:14: warning: symbol 'devfreq_class' was not declared. Should it be static?
>
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>

Signed-off-by: MyungJoo Ham <myunhjoo.ham@xxxxxxxxxxx>

Merged in the devfreq-for-next tree. I'll later send pull a request along with other patches.


Cheers!
MyungJoo.

> ---
> drivers/devfreq/devfreq.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
> index 70c31d4..9eb6805 100644
> --- a/drivers/devfreq/devfreq.c
> +++ b/drivers/devfreq/devfreq.c
> @@ -27,7 +27,7 @@
> #include <linux/hrtimer.h>
> #include "governor.h"
>
> -struct class *devfreq_class;
> +static struct class *devfreq_class;
>
> /*
> * devfreq_work periodically monitors every registered device.
> --
> 1.7.4.1
N떑꿩ìr¸›y鉉싕b²XФ푤vØ^–)頻{.nÇ+돴¥Š{±묎çzX㎍썳變}©옽Æ zÚ&j:+v돣¾«묎çzZ+€Ê+zf"·hš닱~넮녬iÿ鎬z¹®wⅱ¸?솳鈺Ú&¢)刪f뷌^j푹y§m끷@A«a뛴ÿ 0띠h®å’i