Author: adrian
Date: Fri Jul 20 00:47:23 2012
New Revision: 238630
URL: http://svn.freebsd.org/changeset/base/238630

Log:
  Prepare for (re)using this header file in userland.
  
  Remove the inlined code from the header file if it's compiled in userland.
  It's not required and it shouldn't be there in the first place.

Modified:
  head/sys/dev/ath/ath_rate/sample/sample.h

Modified: head/sys/dev/ath/ath_rate/sample/sample.h
==============================================================================
--- head/sys/dev/ath/ath_rate/sample/sample.h   Thu Jul 19 22:41:00 2012        
(r238629)
+++ head/sys/dev/ath/ath_rate/sample/sample.h   Fri Jul 20 00:47:23 2012        
(r238630)
@@ -101,6 +101,9 @@ struct sample_node {
        int packets_since_sample[NUM_PACKET_SIZE_BINS];
        unsigned sample_tt[NUM_PACKET_SIZE_BINS];
 };
+
+#ifdef _KERNEL
+
 #define        ATH_NODE_SAMPLE(an)     ((struct sample_node *)&(an)[1])
 #define        IS_RATE_DEFINED(sn, rix)        (((sn)->ratemask & (1<<(rix))) 
!= 0)
 
@@ -225,4 +228,7 @@ static unsigned calc_usecs_unicast_packe
        }
        return tt;
 }
+
+#endif /* _KERNEL */
+
 #endif /* _DEV_ATH_RATE_SAMPLE_H */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to