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

From: Patrick McHardy <[email-masked]>
Date: Wed, 25 Mar 2009 15:08:16 +0100

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<[email-masked]>
> ---
> 
> --- 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