* net/mac80211/rx.c: fix build error
@ 2008-10-13 6:41 Ingo Molnar
2008-10-13 6:52 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ingo Molnar @ 2008-10-13 6:41 UTC (permalink / raw)
To: netdev, John W. Linville; +Cc: Davide Pesavento, linux-kernel
FYI, the fixlet below is still needed, even after b0dee578 ("Fix modpost
failure when rx handlers are not inlined."). The build error triggered
on a -tip testbox.
Ingo
-------------->
>From da854dfe310ff62fda6866e13bd8588effaee51f Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 13 Oct 2008 08:37:08 +0200
Subject: [PATCH] net/mac80211/rx.c: fix build error
older versions of gcc do not recognize that ieee80211_rx_h_mesh_fwding()
is unused when CONFIG_MAC80211_MESH is disabled:
net/built-in.o: In function `ieee80211_rx_h_mesh_fwding':
rx.c:(.text+0xd89af): undefined reference to `mpp_path_lookup'
rx.c:(.text+0xd89c6): undefined reference to `mpp_path_add'
as this code construct:
if (ieee80211_vif_is_mesh(&sdata->vif))
CALL_RXH(ieee80211_rx_h_mesh_fwding);
still causes ieee80211_rx_h_mesh_fwding() to be linked in.
Protect these places with an #ifdef.
commit b0dee578 ("Fix modpost failure when rx handlers are not inlined.")
solved part of this problem - this patch is still needed.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
net/mac80211/rx.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 77e7b01..cf6b121 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1379,6 +1379,7 @@ ieee80211_rx_h_amsdu(struct ieee80211_rx_data *rx)
return RX_QUEUED;
}
+#ifdef CONFIG_MAC80211_MESH
static ieee80211_rx_result
ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
{
@@ -1453,7 +1454,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
else
return RX_DROP_MONITOR;
}
-
+#endif
static ieee80211_rx_result debug_noinline
ieee80211_rx_h_data(struct ieee80211_rx_data *rx)
@@ -1780,8 +1781,10 @@ static void ieee80211_invoke_rx_handlers(struct ieee80211_sub_if_data *sdata,
/* must be after MMIC verify so header is counted in MPDU mic */
CALL_RXH(ieee80211_rx_h_remove_qos_control)
CALL_RXH(ieee80211_rx_h_amsdu)
+#ifdef CONFIG_MAC80211_MESH
if (ieee80211_vif_is_mesh(&sdata->vif))
CALL_RXH(ieee80211_rx_h_mesh_fwding);
+#endif
CALL_RXH(ieee80211_rx_h_data)
CALL_RXH(ieee80211_rx_h_ctrl)
CALL_RXH(ieee80211_rx_h_action)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: net/mac80211/rx.c: fix build error
2008-10-13 6:41 net/mac80211/rx.c: fix build error Ingo Molnar
@ 2008-10-13 6:52 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-10-13 6:52 UTC (permalink / raw)
To: mingo; +Cc: netdev, linville, davidepesa, linux-kernel
From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 13 Oct 2008 08:41:35 +0200
>
> FYI, the fixlet below is still needed, even after b0dee578 ("Fix modpost
> failure when rx handlers are not inlined."). The build error triggered
> on a -tip testbox.
Fair enough, applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-13 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13 6:41 net/mac80211/rx.c: fix build error Ingo Molnar
2008-10-13 6:52 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®