Skip to contentSkip to conversation

Missing routines for iwlagn on PowerPC build

DISCUSSION Larry Finger 2 participants 2 messages Sep 12, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

I am using a clone of wireless-testing (git describe master-2011-08-30-272-g811462b) to compile 3.1-rc4 for a Powerbook G4 Titanium. The default configuration was taken from the standard one that comes with MintPPC for kernel 2.6.32 as updated for 3.1.

When the build reaches the final stage of the module build, it errors with these messages:

ERROR: "iwl_dump_fh" [drivers/net/wireless/iwlwifi/iwlagn.ko] undefined!
ERROR: "iwl_dump_csr" [drivers/net/wireless/iwlwifi/iwlagn.ko] undefined!

I "fixed" it by disabling the build of iwlagn. It appears that the first one would be fixed by a patch submitted by Johannes and there is probably a second patch for error #2.

Thanks,

Larry

#1 lore raw

Hi Larry,

Quoted 8 lines · Larry Finger

I am using a clone of wireless-testing (git describe master-2011-08-30-272-g811462b) to compile 3.1-rc4 for a Powerbook G4 Titanium. The default configuration was taken from the standard one that comes with MintPPC for kernel 2.6.32 as updated for 3.1.

When the build reaches the final stage of the module build, it errors with these messages:

Quoted 7 lines

ERROR: "iwl_dump_fh" [drivers/net/wireless/iwlwifi/iwlagn.ko] undefined!
ERROR: "iwl_dump_csr" [drivers/net/wireless/iwlwifi/iwlagn.ko] undefined!

I "fixed" it by disabling the build of iwlagn. It appears that the first one would be fixed by a patch submitted by Johannes and there is probably a second patch for error #2.

Please try the following patch which it is already part of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi.git

but since the kernel.org issue, no one can access it

THanks
Wey

Quoted 3 lines

From 28305d9bd1f98f1e640b81f3ba28b701e65cd2e5 Mon Sep 17 00:00:00 2001

From: Emmanuel Grumbach <[email protected]>
Date: Tue, 6 Sep 2011 09:10:38 -0700
Subject: [PATCH 10/10] iwlagn: fix compilation when debug flags is unset

Trivial fixes to allow compilation without warnings when debug compilation flag isn't set.
Also fix the compilation when debugfs flag isn't set. Fix a warning: unused priv pointer on the way.

---
 drivers/net/wireless/iwlwifi/iwl-agn-tx.c |    2 +-
 drivers/net/wireless/iwlwifi/iwl-shared.h |    2 +-
 drivers/net/wireless/iwlwifi/iwl-trans.c  |  260 ++++++++++++++--------------
 3 files changed, 132 insertions(+), 132 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-tx.c +1 -1
index f8a4bcf..ba5c514 100644
@@ -741,7 +741,7 @@ void iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
 	struct iwl_rx_packet *pkt = rxb_addr(rxb);
 	u16 sequence = le16_to_cpu(pkt->hdr.sequence);
 	int txq_id = SEQ_TO_QUEUE(sequence);
-	int cmd_index = SEQ_TO_INDEX(sequence);
+	int cmd_index __maybe_unused = SEQ_TO_INDEX(sequence);
 	struct iwlagn_tx_resp *tx_resp = (void *)&pkt->u.raw[0];
 	struct ieee80211_hdr *hdr;
 	u32 status = le16_to_cpu(tx_resp->status.status);
drivers/net/wireless/iwlwifi/iwl-shared.h +1 -1
index 03f4c64..d987bee 100644
@@ -403,7 +403,7 @@ void iwl_reset_traffic_log(struct iwl_priv *priv);
 #ifdef CONFIG_IWLWIFI_DEBUG
 void iwl_print_rx_config_cmd(struct iwl_priv *priv, u8 ctxid);
 #else
-static inline void iwl_print_rx_config_cmd(struct iwl_priv *priv, u8 ctxid);
+static inline void iwl_print_rx_config_cmd(struct iwl_priv *priv, u8 ctxid)
 {
 }
 #endif
drivers/net/wireless/iwlwifi/iwl-trans.c +130 -130

278 lines not on this page · raw message

Signature · 1 line
1.7.0.4