From: proski Date: Mon, 12 May 2008 02:01:57 +0000 (+0000) Subject: Remove inline forward declarations, it doesn't work this way X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=17ef384654298afd32a494447847c67f25229481;p=madwifi%2F.git Remove inline forward declarations, it doesn't work this way 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 --- diff --git a/ath/if_ath.c b/ath/if_ath.c index 6367c7b..28b574e 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -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) {