Changeset 3626

Show
Ignore:
Timestamp:
05/12/08 04:01:57 (8 months ago)
Author:
proski
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath/if_ath.c

    r3623 r3626  
    165165static int ath_desc_alloc(struct ath_softc *); 
    166166static void ath_desc_free(struct ath_softc *); 
    167 static __inline void ath_desc_swap(struct ath_desc *); 
    168 static __inline u_int32_t ath_ds_link_swap(u_int32_t); 
    169167 
    170168#ifdef IEEE80211_DEBUG_REFCNT 
     
    17721770 
    17731771        return result; 
     1772} 
     1773 
     1774/* Swap transmit descriptor pointer for HW. */ 
     1775static __inline u_int32_t 
     1776ath_ds_link_swap(u_int32_t dp) { 
     1777#ifdef AH_NEED_DESC_SWAP 
     1778        return swab32(dp); 
     1779#else 
     1780        return (dp); 
     1781#endif 
    17741782} 
    17751783 
     
    28962904        ds->ds_hw[0] = cpu_to_le32(ds->ds_hw[0]); 
    28972905        ds->ds_hw[1] = cpu_to_le32(ds->ds_hw[1]); 
    2898 #endif 
    2899 } 
    2900  
    2901 /* Swap transmit descriptor pointer for HW. */ 
    2902 static __inline u_int32_t 
    2903 ath_ds_link_swap(u_int32_t dp) { 
    2904 #ifdef AH_NEED_DESC_SWAP 
    2905         return swab32(dp); 
    2906 #else 
    2907         return (dp); 
    29082906#endif 
    29092907}