Remove inline forward declarations, it doesn't work this way
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 12 May 2008 02:01:57 +0000 (02:01 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 12 May 2008 02:01:57 +0000 (02:01 +0000)
Besided, gcc 3.4.6 doesn't accept it.  Move ath_ds_link_swap() before
the code that uses it.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3626 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 6367c7b2f0b27399962c7f2a4dc70d139c95f40c..28b574e3dc62333e66438742b8d1d47e9a2d52d8 100644 (file)
@@ -164,8 +164,6 @@ static void ath_beacon_free(struct ath_softc *);
 static void ath_beacon_config(struct ath_softc *, struct ieee80211vap *);
 static int ath_desc_alloc(struct ath_softc *);
 static void ath_desc_free(struct ath_softc *);
-static __inline void ath_desc_swap(struct ath_desc *);
-static __inline u_int32_t ath_ds_link_swap(u_int32_t);
 
 #ifdef IEEE80211_DEBUG_REFCNT
 static struct ieee80211_node *ath_node_alloc_debug(struct ieee80211vap *, 
@@ -1773,6 +1771,16 @@ ath_extend_tsf(u_int64_t tsf, u_int32_t rstamp)
        return result;
 }
 
+/* Swap transmit descriptor pointer for HW. */
+static __inline u_int32_t
+ath_ds_link_swap(u_int32_t dp) {
+#ifdef AH_NEED_DESC_SWAP
+       return swab32(dp);
+#else
+       return (dp);
+#endif
+}
+
 static void
 ath_intr_process_rx_descriptors(struct ath_softc *sc, int* pneedmark, u_int64_t hw_tsf)
 {
@@ -2898,16 +2906,6 @@ ath_desc_swap(struct ath_desc *ds)
 #endif
 }
 
-/* Swap transmit descriptor pointer for HW. */
-static __inline u_int32_t
-ath_ds_link_swap(u_int32_t dp) {
-#ifdef AH_NEED_DESC_SWAP
-       return swab32(dp);
-#else
-       return (dp);
-#endif
-}
-
 static void
 ath_txq_dump(struct ath_softc *sc, struct ath_txq *txq)
 {