summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-02-15 19:15:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-02-15 19:15:26 +0000
commit29d37a61b98670babd54e5f12f3772bfbdf6e678 (patch)
tree52a321a26fe7deb6e54e73c5acfd1c040bd00674 /sys/dev
parentf053f48489b5623a3dbe20a049d812093e1f74f0 (diff)
Do not compile statistics counters code if defined(SMALL_KERNEL). Makes i386
RAMDISKA breathe a bit better. (file forgotten in yesterday's if_em.c commit)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_em_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em_hw.c b/sys/dev/pci/if_em_hw.c
index 20d9ce86f80..e58fff322fa 100644
--- a/sys/dev/pci/if_em_hw.c
+++ b/sys/dev/pci/if_em_hw.c
@@ -31,7 +31,7 @@
*******************************************************************************/
-/* $OpenBSD: if_em_hw.c,v 1.59 2011/02/06 23:47:14 dlg Exp $ */
+/* $OpenBSD: if_em_hw.c,v 1.60 2011/02/15 19:15:25 miod Exp $ */
/*
* if_em_hw.c Shared functions for accessing and configuring the MAC
*/
@@ -7115,6 +7115,7 @@ em_clear_hw_cntrs(struct em_hw *hw)
temp = E1000_READ_REG(hw, ICRXDMTC);
}
+#ifndef SMALL_KERNEL
/******************************************************************************
* Adjusts the statistic counters when a frame is accepted by TBI_ACCEPT
*
@@ -7194,6 +7195,7 @@ em_tbi_adjust_stats(struct em_hw *hw, struct em_hw_stats *stats,
stats->prc1522++;
}
}
+#endif /* !SMALL_KERNEL */
/******************************************************************************
* Gets the current PCI bus type, speed, and width of the hardware