Re: [PATCH] Re: Next March 25: net/netfilter/xt_LED build failure.

From: Patrick McHardy
Date: Wed Mar 25 2009 - 10:08:39 EST


Subrata Modak wrote:
The following patch will solve the build problem reported by Sachin.
But would leave the following warnings. I hope we can ignore them:

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:87: warning: unused variable ÃïïerrÃïï

Signed-Off-By: Subrata Modak<subrata@xxxxxxxxxxxxxxxxxx>
---

--- a/linux-2.6.29/net/netfilter/xt_LED.c 2009-03-25 18:38:08.000000000 +0530
+++ b/linux-2.6.29/net/netfilter/xt_LED.c 2009-03-25 18:26:55.000000000 +0530
@@ -99,6 +99,7 @@ static bool led_tg_check(const struct xt
ledinternal->netfilter_led_trigger.name = ledinfo->id;
+#ifdef CONFIG_LEDS_TRIGGERS
...


Does this patch fix it? diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 2562d05..2c967e4 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL

config NETFILTER_XT_TARGET_LED
tristate '"LED" target support'
- depends on LEDS_CLASS
+ depends on LEDS_CLASS && LED_TRIGGERS
depends on NETFILTER_ADVANCED
help
This option adds a `LED' target, which allows you to blink LEDs in