Module Name: src
Committed By: mrg
Date: Tue Feb 6 09:33:45 UTC 2018
Modified Files:
src/sys/arch/mips/cavium/dev: octeon_pip.c
Log Message:
update for GCC 6:
hide octeon_pip_dump_regs_[] under OCTEON_ETH_DEBUG, the only user.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mips/cavium/dev/octeon_pip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/cavium/dev/octeon_pip.c
diff -u src/sys/arch/mips/cavium/dev/octeon_pip.c:1.1 src/sys/arch/mips/cavium/dev/octeon_pip.c:1.2
--- src/sys/arch/mips/cavium/dev/octeon_pip.c:1.1 Wed Apr 29 08:32:01 2015
+++ src/sys/arch/mips/cavium/dev/octeon_pip.c Tue Feb 6 09:33:45 2018
@@ -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 @@ static const struct octeon_pip_dump_reg_
_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 @@ static const struct octeon_pip_dump_reg_
_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