From: Hauke Mehrtens Date: Fri, 7 Feb 2014 18:13:11 +0000 (+0100) Subject: backports: add led_trigger_blink{_oneshot}() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d38bcbb3b440de751e1b76a3c528feec96921d36;p=openwrt%2Fstaging%2Fblogic.git backports: add led_trigger_blink{_oneshot}() When led support is deactivated in the kernel and CPTCFG_BACKPORT_BUILD_LEDS is set mac80211 references led_trigger_blink_oneshot() but it is not declared anywhere. This fixes the following build error: net/mac80211/led.c: In function 'ieee80211_led_rx': net/mac80211/led.c:25:2: error: implicit declaration of function 'led_trigger_blink_oneshot' [-Werror=implicit-function-declaration] Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/backport/leds-disabled.h b/backport/backport-include/backport/leds-disabled.h index 634b62f43599..501f2a0b13b4 100644 --- a/backport/backport-include/backport/leds-disabled.h +++ b/backport/backport-include/backport/leds-disabled.h @@ -163,6 +163,19 @@ static inline void led_trigger_event(struct led_trigger *trigger, enum led_brightness event) { } + +static inline void led_trigger_blink(struct led_trigger *trigger, + unsigned long *delay_on, + unsigned long *delay_off) +{ +} + +static inline void led_trigger_blink_oneshot(struct led_trigger *trigger, + unsigned long *delay_on, + unsigned long *delay_off, + int invert) +{ +} #endif #endif /* __BACKPORT_LED_DISABLED_SUPPORT */