AA: mac80211: backport package from trunk r39886
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 004-backports-add-led_trigger_blink-_oneshot.patch
1 From 88e75363ff9c00cc2e7768ca23ded79bf8d6bf08 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 7 Feb 2014 19:13:11 +0100
4 Subject: [PATCH 1/8] backports: add led_trigger_blink{_oneshot}()
5
6 When led support is deactivated in the kernel and
7 CPTCFG_BACKPORT_BUILD_LEDS is set mac80211 references
8 led_trigger_blink_oneshot() but it is not declared anywhere.
9
10 This fixes the following build error:
11 net/mac80211/led.c: In function 'ieee80211_led_rx':
12 net/mac80211/led.c:25:2: error: implicit declaration of function 'led_trigger_blink_oneshot' [-Werror=implicit-function-declaration]
13
14 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 ---
16 backport-include/backport/leds-disabled.h | 13 +++++++++++++
17 1 file changed, 13 insertions(+)
18
19 --- a/backport-include/backport/leds-disabled.h
20 +++ b/backport-include/backport/leds-disabled.h
21 @@ -163,6 +163,19 @@ static inline void led_trigger_event(str
22 enum led_brightness event)
23 {
24 }
25 +
26 +static inline void led_trigger_blink(struct led_trigger *trigger,
27 + unsigned long *delay_on,
28 + unsigned long *delay_off)
29 +{
30 +}
31 +
32 +static inline void led_trigger_blink_oneshot(struct led_trigger *trigger,
33 + unsigned long *delay_on,
34 + unsigned long *delay_off,
35 + int invert)
36 +{
37 +}
38 #endif
39
40 #endif /* __BACKPORT_LED_DISABLED_SUPPORT */