提交 a9a9adfe 编写于 作者: P Patrick McHardy

netfilter: fix xt_LED build failure

net/netfilter/xt_LED.c:40: error: field netfilter_led_trigger has incomplete type
net/netfilter/xt_LED.c: In function led_timeout_callback:
net/netfilter/xt_LED.c:78: warning: unused variable ledinternal
net/netfilter/xt_LED.c: In function led_tg_check:
net/netfilter/xt_LED.c:102: error: implicit declaration of function led_trigger_register
net/netfilter/xt_LED.c: In function led_tg_destroy:
net/netfilter/xt_LED.c:135: error: implicit declaration of function led_trigger_unregister

Fix by adding a dependency on LED_TRIGGERS.
Reported-by: NSachin Sant <sachinp@in.ibm.com>
Tested-by: NSubrata Modak <tosubrata@gmail.com>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
上级 1d45209d
...@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL ...@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL
config NETFILTER_XT_TARGET_LED config NETFILTER_XT_TARGET_LED
tristate '"LED" target support' tristate '"LED" target support'
depends on LEDS_CLASS depends on LEDS_CLASS && LED_TRIGGERS
depends on NETFILTER_ADVANCED depends on NETFILTER_ADVANCED
help help
This option adds a `LED' target, which allows you to blink LEDs in This option adds a `LED' target, which allows you to blink LEDs in
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册