Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2012 00:47:24 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238630 - head/sys/dev/ath/ath_rate/sample
Message-ID:  <201207200047.q6K0lOU3039068@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207200047.q6K0lOU3039068>