Commit b88a497701f84a0edc6631a79d21087e049bbcb1

Authored by Sachin Kamat
Committed by Zhang Rui
1 parent 791700cdfc

thermal: step_wise: Add missing static storage class specifiers

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 <sachin.kamat@linaro.org>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/thermal/step_wise.c
... ... @@ -150,7 +150,7 @@
150 150 * step. If the zone is 'cooling down' it brings back the performance of
151 151 * the devices by one step.
152 152 */
153   -int step_wise_throttle(struct thermal_zone_device *tz, int trip)
  153 +static int step_wise_throttle(struct thermal_zone_device *tz, int trip)
154 154 {
155 155 struct thermal_instance *instance;
156 156  
... ... @@ -169,7 +169,7 @@
169 169 return 0;
170 170 }
171 171  
172   -struct thermal_governor thermal_gov_step_wise = {
  172 +static struct thermal_governor thermal_gov_step_wise = {
173 173 .name = DEFAULT_THERMAL_GOVERNOR,
174 174 .throttle = step_wise_throttle,
175 175 .owner = THIS_MODULE,