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/98a7b3e072e0
branches: trunk
changeset: 349186:98a7b3e072e0
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 92ae8535584c -r 98a7b3e072e0 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