leds: fix sparse warnings due to missing static
authorBryan Wu <bryan.wu@canonical.com>
Fri, 15 Jun 2012 14:15:27 +0000 (22:15 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Mon, 23 Jul 2012 23:52:35 +0000 (07:52 +0800)
drivers/leds/led-core.c:56:6: sparse: symbol 'led_blink_setup' was not declared. Should it be static?
drivers/leds/led-triggers.c:233:6: sparse: symbol 'led_trigger_blink_setup' was not declared. Should it be static?

Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/led-core.c
drivers/leds/led-triggers.c

index 8a09c5fc2a6d920eae20cea6c6bd6fbc0c0d66fc..2ab05af3de31ab188fb0300befb04a708702637f 100644 (file)
@@ -53,7 +53,7 @@ static void led_set_software_blink(struct led_classdev *led_cdev,
 }
 
 
-void led_blink_setup(struct led_classdev *led_cdev,
+static void led_blink_setup(struct led_classdev *led_cdev,
                     unsigned long *delay_on,
                     unsigned long *delay_off)
 {
index de1c59d641a828a33903148fe010f44e5171eef7..6157cbbf41131cb1f2fdf7b4f02e96f48771a8b1 100644 (file)
@@ -230,7 +230,7 @@ void led_trigger_event(struct led_trigger *trig,
 }
 EXPORT_SYMBOL_GPL(led_trigger_event);
 
-void led_trigger_blink_setup(struct led_trigger *trig,
+static void led_trigger_blink_setup(struct led_trigger *trig,
                             unsigned long *delay_on,
                             unsigned long *delay_off,
                             int oneshot,