Skip to contentSkip to conversation

PM: devfreq: Add missing static storage class specifier in devfreq.c file

PATCH MyungJoo Ham 1 participant 1 message Jun 11, 2012

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

Fixes the following sparse warning:
drivers/devfreq/devfreq.c:30:14: warning: symbol 'devfreq_class' was not declared. Should it be static?

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

Cheers!
MyungJoo.

Quoted 19 lines
---
 drivers/devfreq/devfreq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/devfreq/devfreq.c +1 -1
index 70c31d4..9eb6805 100644
@@ -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.
Signature · 1 line
1.7.4.1

�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m��� �띠�◀?뻀�