[Midnightbsd-cvs] src [6579] trunk/sys/dev/ath: make things static

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Dec 29 22:40:53 EST 2013


Revision: 6579
          http://svnweb.midnightbsd.org/src/?rev=6579
Author:   laffer1
Date:     2013-12-29 22:40:52 -0500 (Sun, 29 Dec 2013)
Log Message:
-----------
make things static

Modified Paths:
--------------
    trunk/sys/dev/ath/ah_osdep.c
    trunk/sys/dev/ath/if_ath.c
    trunk/sys/dev/ath/if_ath_tx.c

Modified: trunk/sys/dev/ath/ah_osdep.c
===================================================================
--- trunk/sys/dev/ath/ah_osdep.c	2013-12-30 03:40:31 UTC (rev 6578)
+++ trunk/sys/dev/ath/ah_osdep.c	2013-12-30 03:40:52 UTC (rev 6579)
@@ -76,7 +76,7 @@
 
 /* NB: put this here instead of the driver to avoid circular references */
 SYSCTL_NODE(_hw, OID_AUTO, ath, CTLFLAG_RD, 0, "Atheros driver parameters");
-SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters");
+static SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters");
 
 #ifdef AH_DEBUG
 int ath_hal_debug = 0;
@@ -85,7 +85,7 @@
 TUNABLE_INT("hw.ath.hal.debug", &ath_hal_debug);
 #endif /* AH_DEBUG */
 
-MALLOC_DEFINE(M_ATH_HAL, "ath_hal", "ath hal data");
+static MALLOC_DEFINE(M_ATH_HAL, "ath_hal", "ath hal data");
 
 void*
 ath_hal_malloc(size_t size)

Modified: trunk/sys/dev/ath/if_ath.c
===================================================================
--- trunk/sys/dev/ath/if_ath.c	2013-12-30 03:40:31 UTC (rev 6578)
+++ trunk/sys/dev/ath/if_ath.c	2013-12-30 03:40:52 UTC (rev 6579)
@@ -258,7 +258,7 @@
 SYSCTL_INT(_hw_ath, OID_AUTO, bstuck, CTLFLAG_RW, &ath_bstuck_threshold,
 	    0, "max missed beacon xmits before chip reset");
 
-MALLOC_DEFINE(M_ATHDEV, "athdev", "ath driver dma buffers");
+static MALLOC_DEFINE(M_ATHDEV, "athdev", "ath driver dma buffers");
 
 #define	HAL_MODE_HT20 (HAL_MODE_11NG_HT20 | HAL_MODE_11NA_HT20)
 #define	HAL_MODE_HT40 \

Modified: trunk/sys/dev/ath/if_ath_tx.c
===================================================================
--- trunk/sys/dev/ath/if_ath_tx.c	2013-12-30 03:40:31 UTC (rev 6578)
+++ trunk/sys/dev/ath/if_ath_tx.c	2013-12-30 03:40:52 UTC (rev 6579)
@@ -195,7 +195,7 @@
 	 */
 	if (bf->bf_nseg > ATH_TXDESC) {		/* too many desc's, linearize */
 		sc->sc_stats.ast_tx_linear++;
-		m = m_collapse(m0, M_DONTWAIT, ATH_TXDESC);
+		m = m_collapse(m0, M_NOWAIT, ATH_TXDESC);
 		if (m == NULL) {
 			ath_freetx(m0);
 			sc->sc_stats.ast_tx_nombuf++;



More information about the Midnightbsd-cvs mailing list