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 fix non-DIAG builds.



details:   https://anonhg.NetBSD.org/src/rev/7c3b5de6f09d
branches:  trunk
changeset: 819328:7c3b5de6f09d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Nov 28 04:18:08 2016 +0000

description:
fix non-DIAG builds.

diffstat:

 sys/arch/mips/cavium/octeon_intr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r e26a75e7c976 -r 7c3b5de6f09d sys/arch/mips/cavium/octeon_intr.c
--- a/sys/arch/mips/cavium/octeon_intr.c        Mon Nov 28 02:23:33 2016 +0000
+++ b/sys/arch/mips/cavium/octeon_intr.c        Mon Nov 28 04:18:08 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_intr.c,v 1.8 2016/10/31 12:27:22 skrll Exp $    */
+/*     $NetBSD: octeon_intr.c,v 1.9 2016/11/28 04:18:08 mrg Exp $      */
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
  * All rights reserved.
@@ -45,7 +45,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.8 2016/10/31 12:27:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.9 2016/11/28 04:18:08 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -302,7 +302,9 @@
 void
 octeon_intr_init(struct cpu_info *ci)
 {
+#ifdef DIAGNOSTIC
        const int cpunum = cpu_index(ci);
+#endif
        const char * const xname = cpu_name(ci);
        struct cpu_softc *cpu = ci->ci_softc;
 



Home | Main Index | Thread Index | Old Index