From: David Miller <davem@davemloft.net>
To: mingo@elte.hu
Cc: linville@tuxdriver.com, tomas.winkler@intel.com,
linux-kernel@vger.kernel.org, kaber@trash.net,
torvalds@linux-foundation.org, akpm@linux-foundation.org,
netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
mabbas@linux.intel.com, ischram@telenet.be, rjw@sisk.pl
Subject: Re: [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister'
Date: Sun, 20 Apr 2008 00:51:49 -0700 (PDT) [thread overview]
Message-ID: <20080420.005149.189096986.davem@davemloft.net> (raw)
In-Reply-To: <20080420073441.GA31745@elte.hu>
From: Ingo Molnar <mingo@elte.hu>
Date: Sun, 20 Apr 2008 09:34:41 +0200
> drivers/built-in.o: In function `iwl3945_led_unregister_led':
> iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister'
> drivers/built-in.o: In function `iwl3945_led_register_led':
> iwl-3945-led.c:(.text+0x119ecd): undefined reference to `led_classdev_register'
Thanks for the report.
This is the classic "API_OPTION=m && API_USER=y" problem.
In this case the best fix is probably to use select in the
iwlwifi Kconfig files. The following patch should cure it.
iwlwifi: Use 'select' for MAC80211_LEDS and LEDS_CLASS instead of 'depends'
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
index f844b73..c4e631d 100644
--- a/drivers/net/wireless/iwlwifi/Kconfig
+++ b/drivers/net/wireless/iwlwifi/Kconfig
@@ -49,7 +49,9 @@ config IWL4965_HT
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
select IWLWIFI_LEDS
---help---
This option enables LEDS for the iwlwifi drivers
@@ -134,7 +136,9 @@ config IWL3945_SPECTRUM_MEASUREMENT
config IWL3945_LEDS
bool "Enable LEDS features in iwl3945 driver"
- depends on IWL3945 && MAC80211_LEDS && LEDS_CLASS
+ depends on IWL3945
+ select MAC80211_LEDS
+ select LEDS_CLASS
---help---
This option enables LEDS for the iwl3945 driver.
next prev parent reply other threads:[~2008-04-20 7:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-19 13:56 [built bug] drivers/net/wireless/iwlwifi/iwl-debugfs.c Ingo Molnar
2008-04-20 1:08 ` David Miller
2008-04-21 16:32 ` Winkler, Tomas
2008-04-20 7:34 ` [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister' Ingo Molnar
2008-04-20 7:51 ` David Miller [this message]
2008-04-21 17:03 ` Winkler, Tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080420.005149.189096986.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@linux-foundation.org \
--cc=ischram@telenet.be \
--cc=kaber@trash.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mabbas@linux.intel.com \
--cc=mingo@elte.hu \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=tomas.winkler@intel.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).