* [built bug] drivers/net/wireless/iwlwifi/iwl-debugfs.c
@ 2008-04-19 13:56 Ingo Molnar
2008-04-20 1:08 ` David Miller
2008-04-20 7:34 ` [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister' Ingo Molnar
0 siblings, 2 replies; 6+ messages in thread
From: Ingo Molnar @ 2008-04-19 13:56 UTC (permalink / raw)
To: David Miller, John W. Linville, Tomas Winkler
Cc: linux-kernel, kaber, torvalds, akpm, netdev, netfilter-devel
here's another networking (iwlwifi) related build failure with latest
-git:
drivers/net/wireless/iwlwifi/iwl-debugfs.c: In function 'iwl_dbgfs_stations_read':
drivers/net/wireless/iwlwifi/iwl-debugfs.c:256: error: 'struct iwl4965_tid_data' has no member named 'agg'
http://redhat.com/~mingo/misc/config-Sat_Apr_19_14_41_43_CEST_2008.bad
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [built bug] drivers/net/wireless/iwlwifi/iwl-debugfs.c
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
1 sibling, 1 reply; 6+ messages in thread
From: David Miller @ 2008-04-20 1:08 UTC (permalink / raw)
To: mingo
Cc: linville, tomas.winkler, linux-kernel, kaber, torvalds, akpm,
netdev, netfilter-devel
From: Ingo Molnar <mingo@elte.hu>
Date: Sat, 19 Apr 2008 15:56:02 +0200
> drivers/net/wireless/iwlwifi/iwl-debugfs.c: In function 'iwl_dbgfs_stations_read':
> drivers/net/wireless/iwlwifi/iwl-debugfs.c:256: error: 'struct iwl4965_tid_data' has no member named 'agg'
This should fix it, thanks for the report.
Longer term, I seriously question the sanity of including iwl4964
specific dumping into a debug module that is linked into both
iwlwifi drivers :-/
iwlwifi: Fix unconditional access to station->tidp[].agg.
Reportred by Ingo Molnar:
drivers/net/wireless/iwlwifi/iwl-debugfs.c: In function 'iwl_dbgfs_stations_read':
drivers/net/wireless/iwlwifi/iwl-debugfs.c:256: error: 'struct iwl4965_tid_data' has no member named 'agg'
Needs CONFIG_IWL4965_HT protection.
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 0f16f26..9a30e1d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -239,28 +239,34 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
"ps_status: %u\n", station->ps_status);
pos += scnprintf(buf + pos, bufsz - pos, "tid data:\n");
pos += scnprintf(buf + pos, bufsz - pos,
- "seq_num\t\ttxq_id\t");
+ "seq_num\t\ttxq_id");
+#ifdef CONFIG_IWL4965_HT
pos += scnprintf(buf + pos, bufsz - pos,
- "frame_count\twait_for_ba\t");
+ "\tframe_count\twait_for_ba\t");
pos += scnprintf(buf + pos, bufsz - pos,
"start_idx\tbitmap0\t");
pos += scnprintf(buf + pos, bufsz - pos,
- "bitmap1\trate_n_flags\n");
+ "bitmap1\trate_n_flags");
+#endif
+ pos += scnprintf(buf + pos, bufsz - pos, "\n");
for (j = 0; j < MAX_TID_COUNT; j++) {
pos += scnprintf(buf + pos, bufsz - pos,
- "[%d]:\t\t%u\t", j,
+ "[%d]:\t\t%u", j,
station->tid[j].seq_number);
+#ifdef CONFIG_IWL4965_HT
pos += scnprintf(buf + pos, bufsz - pos,
- "%u\t\t%u\t\t%u\t\t",
+ "\t%u\t\t%u\t\t%u\t\t",
station->tid[j].agg.txq_id,
station->tid[j].agg.frame_count,
station->tid[j].agg.wait_for_ba);
pos += scnprintf(buf + pos, bufsz - pos,
- "%u\t%llu\t%u\n",
+ "%u\t%llu\t%u",
station->tid[j].agg.start_idx,
(unsigned long long)station->tid[j].agg.bitmap,
station->tid[j].agg.rate_n_flags);
+#endif
+ pos += scnprintf(buf + pos, bufsz - pos, "\n");
}
pos += scnprintf(buf + pos, bufsz - pos, "\n");
}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister'
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-20 7:34 ` Ingo Molnar
2008-04-20 7:51 ` David Miller
1 sibling, 1 reply; 6+ messages in thread
From: Ingo Molnar @ 2008-04-20 7:34 UTC (permalink / raw)
To: David Miller, John W. Linville, Tomas Winkler
Cc: linux-kernel, kaber, torvalds, akpm, netdev, netfilter-devel,
Mohamed Abbas, Ian Schram, Tomas Winkler, Rafael J. Wysocki
> here's another networking (iwlwifi) related build failure with latest
> -git:
a third -git build failure triggered in last night's x86.git build/boot
testing:
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'
config:
http://redhat.com/~mingo/misc/config-Sat_Apr_19_22_08_04_CEST_2008.bad
probably due to commit ab53d8af6 "iwlwifi: Add led support".
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister'
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
2008-04-21 17:03 ` Winkler, Tomas
0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2008-04-20 7:51 UTC (permalink / raw)
To: mingo
Cc: linville, tomas.winkler, linux-kernel, kaber, torvalds, akpm,
netdev, netfilter-devel, mabbas, ischram, rjw
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.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [built bug] drivers/net/wireless/iwlwifi/iwl-debugfs.c
2008-04-20 1:08 ` David Miller
@ 2008-04-21 16:32 ` Winkler, Tomas
0 siblings, 0 replies; 6+ messages in thread
From: Winkler, Tomas @ 2008-04-21 16:32 UTC (permalink / raw)
To: David Miller, mingo, Chatre, Reinette
Cc: linville, linux-kernel, kaber, torvalds, akpm, netdev,
netfilter-devel
>-----Original Message-----
>From: David Miller [mailto:davem@davemloft.net]
>Sent: Sunday, April 20, 2008 4:09 AM
>To: mingo@elte.hu
>Cc: linville@tuxdriver.com; Winkler, Tomas;
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
>Subject: Re: [built bug] drivers/net/wireless/iwlwifi/iwl-debugfs.c
>
>From: Ingo Molnar <mingo@elte.hu>
>Date: Sat, 19 Apr 2008 15:56:02 +0200
>
>> drivers/net/wireless/iwlwifi/iwl-debugfs.c: In function
>'iwl_dbgfs_stations_read':
>> drivers/net/wireless/iwlwifi/iwl-debugfs.c:256: error: 'struct
>iwl4965_tid_data' has no member named 'agg'
>
>This should fix it, thanks for the report.
>
>Longer term, I seriously question the sanity of including iwl4964
>specific dumping into a debug module that is linked into both
>iwlwifi drivers :-/
>
>iwlwifi: Fix unconditional access to station->tidp[].agg.
>
>Reportred by Ingo Molnar:
>
>drivers/net/wireless/iwlwifi/iwl-debugfs.c: In function
>'iwl_dbgfs_stations_read':
>drivers/net/wireless/iwlwifi/iwl-debugfs.c:256: error: 'struct
>iwl4965_tid_data' has no member named 'agg'
>
>Needs CONFIG_IWL4965_HT protection.
>
>Signed-off-by: David S. Miller <davem@davemloft.net>
>
>diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
>b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
>index 0f16f26..9a30e1d 100644
>--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
>+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
>@@ -239,28 +239,34 @@ static ssize_t iwl_dbgfs_stations_read(struct
file
>*file, char __user *user_buf,
> "ps_status: %u\n",
station->ps_status);
> pos += scnprintf(buf + pos, bufsz - pos, "tid
data:\n");
> pos += scnprintf(buf + pos, bufsz - pos,
>- "seq_num\t\ttxq_id\t");
>+ "seq_num\t\ttxq_id");
>+#ifdef CONFIG_IWL4965_HT
> pos += scnprintf(buf + pos, bufsz - pos,
>- "frame_count\twait_for_ba\t");
>+ "\tframe_count\twait_for_ba\t");
> pos += scnprintf(buf + pos, bufsz - pos,
> "start_idx\tbitmap0\t");
> pos += scnprintf(buf + pos, bufsz - pos,
>- "bitmap1\trate_n_flags\n");
>+ "bitmap1\trate_n_flags");
>+#endif
>+ pos += scnprintf(buf + pos, bufsz - pos, "\n");
>
> for (j = 0; j < MAX_TID_COUNT; j++) {
> pos += scnprintf(buf + pos, bufsz - pos,
>- "[%d]:\t\t%u\t", j,
>+ "[%d]:\t\t%u", j,
>
station->tid[j].seq_number);
>+#ifdef CONFIG_IWL4965_HT
> pos += scnprintf(buf + pos, bufsz - pos,
>- "%u\t\t%u\t\t%u\t\t",
>+ "\t%u\t\t%u\t\t%u\t\t",
>
station->tid[j].agg.txq_id,
>
station->tid[j].agg.frame_count,
>
station->tid[j].agg.wait_for_ba);
> pos += scnprintf(buf + pos, bufsz - pos,
>- "%u\t%llu\t%u\n",
>+ "%u\t%llu\t%u",
>
station->tid[j].agg.start_idx,
> (unsigned long
long)station-
>>tid[j].agg.bitmap,
>
station->tid[j].agg.rate_n_flags);
>+#endif
>+ pos += scnprintf(buf + pos, bufsz - pos,
"\n");
> }
> pos += scnprintf(buf + pos, bufsz - pos, "\n");
>
ACK
}
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [build bug] iwl-3945-led.c:(.text+0x119e36): undefined reference to `__led_classdev_unregister'
2008-04-20 7:51 ` David Miller
@ 2008-04-21 17:03 ` Winkler, Tomas
0 siblings, 0 replies; 6+ messages in thread
From: Winkler, Tomas @ 2008-04-21 17:03 UTC (permalink / raw)
To: David Miller, mingo, Chatre, Reinette
Cc: linville, linux-kernel, kaber, torvalds, akpm, netdev,
netfilter-devel, mabbas, ischram, rjw
>-----Original Message-----
>From: David Miller [mailto:davem@davemloft.net]
>Sent: Sunday, April 20, 2008 10:52 AM
>To: mingo@elte.hu
>Cc: linville@tuxdriver.com; Winkler, Tomas;
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'
>
>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.
>
ACK
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-21 17:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-04-21 17:03 ` Winkler, Tomas
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).