login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
26
Re: [PATCH] Fix compile error with wifi & leds
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Tomas Winkler <tomasw@...>
To: Luca Tettamanti <kronos.it@...>
Cc: <linux-kernel@...>, <linux-wireless@...>, David S. Miller <davem@...>
Subject:
Re: [PATCH] Fix compile error with wifi & leds
Date: Saturday, April 26, 2008 - 7:26 pm
On Sat, Apr 26, 2008 at 11:34 PM, Luca Tettamanti <kronos.it@gmail.com> wrote:
quoted text
> Hi, > I encountered a build error with current git tree: > > CC [M] net/mac80211/led.o > /home/kronos/src/linux-2.6.git/net/mac80211/led.c: In function 'ieee80211_led_init': > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:58: error: invalid application of 'sizeof' to incomplete type 'struct led_trigger' > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:62: error: dereferencing pointer to incomplete type > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:63: error: implicit declaration of function 'led_trigger_register' > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:69: error: invalid application of 'sizeof' to incomplete type 'struct led_trigger' > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:73: error: dereferencing pointer to incomplete type > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:80: error: invalid application of 'sizeof' to incomplete type 'struct led_trigger' > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:84: error: dereferencing pointer to incomplete type > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:91: error: invalid application of 'sizeof' to incomplete type 'struct led_trigger' > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:95: error: dereferencing pointer to incomplete type > /home/kronos/src/linux-2.6.git/net/mac80211/led.c: In function 'ieee80211_led_exit': > /home/kronos/src/linux-2.6.git/net/mac80211/led.c:106: error: implicit declaration of function 'led_trigger_unregister' > make[3]: *** [net/mac80211/led.o] Error 1 > make[2]: *** [net/mac80211] Error 2 > make[1]: *** [net] Error 2 > make: *** [sub-make] Error 2 > > This has been caused by commit e82404ad612ebabc65d15c3d59b971cb35c3ff36 > from David Miller: > > config IWL4965_LEDS > bool "Enable LEDS features in iwl4965 driver" > - depends on IWL4965 && MAC80211_LEDS && LEDS_CLASS > + depends on IWL4965 > + select MAC80211_LEDS > + select LEDS_CLASS > > > the problem is that MAC80211_LEDS *depends* on LEDS_TRIGGER but does not > _select_ it. IOW enabling IWL4965_LEDS enables MAC80211_LEDS which in > turn does not compile if LEDS_TRIGGER is not enabled. > > LEDS_TRIGGER is not enough though, NEW_LEDS (which is a menuconfig > guarding the aforementioned symbol) must also be selected. > > --- > > Since MAC80211_LEDS is selected by wireless drivers it must select its > own dependencies otherwise a build error may occur (kbuild will select > the symbol regardless of "depends" constraints). > > Signed-Off-By: Luca Tettamanti <kronos.it@gmail.com> > > --- > > net/mac80211/Kconfig | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig > index 520a518..a24b459 100644 > --- a/net/mac80211/Kconfig > +++ b/net/mac80211/Kconfig > @@ -73,7 +73,9 @@ config MAC80211_MESH > > config MAC80211_LEDS > bool "Enable LED triggers" > - depends on MAC80211 && LEDS_TRIGGERS > + depends on MAC80211 > + select NEW_LEDS > + select LEDS_TRIGGERS > ---help--- > This option enables a few LED triggers for different > packet receive/transmit events. >
This one was already posted Thanks Tomas --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] Fix compile error with wifi & leds
, Luca Tettamanti
, (Sat Apr 26, 4:34 pm)
Re: [PATCH] Fix compile error with wifi & leds
, Adrian Bunk
, (Mon Apr 28, 3:45 am)
Re: [PATCH] Fix compile error with wifi & leds
, Adrian Bunk
, (Mon Apr 28, 3:54 am)
Re: [PATCH] Fix compile error with wifi & leds
, Tomas Winkler
, (Mon Apr 28, 4:18 am)
Re: [PATCH] Fix compile error with wifi & leds
, Adrian Bunk
, (Mon Apr 28, 4:20 am)
Re: [PATCH] Fix compile error with wifi & leds
, Tomas Winkler
, (Mon Apr 28, 4:29 am)
Re: [PATCH] Fix compile error with wifi & leds
, Luca Tettamanti
, (Mon Apr 28, 4:16 am)
Re: [PATCH] Fix compile error with wifi & leds
, David Miller
, (Sat Apr 26, 8:40 pm)
Re: [PATCH] Fix compile error with wifi & leds
, Tomas Winkler
, (Sat Apr 26, 7:26 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Adrian Bunk
Re: LSM conversion to static interface
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
Winkler, Tomas
RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall"
Colocation donated by:
Who's online
There are currently
4 users
and
900 guests
online.
Online users
strcmp
raffaellotdec
mikereynolds
terrysmith514
Syndicate