From owner-svn-src-head@FreeBSD.ORG Fri Jul 20 00:47:24 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2DC8106566B; Fri, 20 Jul 2012 00:47:24 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8D8428FC15; Fri, 20 Jul 2012 00:47:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6K0lOKx039070; Fri, 20 Jul 2012 00:47:24 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6K0lOU3039068; Fri, 20 Jul 2012 00:47:24 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201207200047.q6K0lOU3039068@svn.freebsd.org> From: Adrian Chadd Date: Fri, 20 Jul 2012 00:47:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238630 - head/sys/dev/ath/ath_rate/sample X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 00:47:24 -0000 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 */