Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/cavium/dev update for GCC 6:
details: https://anonhg.NetBSD.org/src/rev/56d1efeaa881
branches: trunk
changeset: 359285:56d1efeaa881
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Feb 06 09:33:45 2018 +0000
description:
update for GCC 6:
hide octeon_pip_dump_regs_[] under OCTEON_ETH_DEBUG, the only user.
diffstat:
sys/arch/mips/cavium/dev/octeon_pip.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r e498a7611d08 -r 56d1efeaa881 sys/arch/mips/cavium/dev/octeon_pip.c
--- a/sys/arch/mips/cavium/dev/octeon_pip.c Tue Feb 06 09:33:07 2018 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_pip.c Tue Feb 06 09:33:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: octeon_pip.c,v 1.1 2015/04/29 08:32:01 hikaru Exp $ */
+/* $NetBSD: octeon_pip.c,v 1.2 2018/02/06 09:33:45 mrg Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_pip.c,v 1.1 2015/04/29 08:32:01 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_pip.c,v 1.2 2018/02/06 09:33:45 mrg Exp $");
#include "opt_octeon.h"
@@ -88,6 +88,7 @@
_ENTRY_0_1_2_32 (PIP_STAT_INB_ERRS),
};
+#ifdef OCTEON_ETH_DEBUG
static const struct octeon_pip_dump_reg_ octeon_pip_dump_regs_[] = {
_ENTRY (PIP_BIST_STATUS),
_ENTRY (PIP_INT_REG),
@@ -106,6 +107,8 @@
_ENTRY_0_1_2_32 (PIP_PRT_CFG),
_ENTRY_0_1_2_32 (PIP_PRT_TAG),
};
+#endif
+
#undef _ENTRY
#undef _ENTRY_0_3
#undef _ENTRY_0_7
Home |
Main Index |
Thread Index |
Old Index