Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix no options DEBUG nor DIAGNOSTIC build
details: https://anonhg.NetBSD.org/src/rev/20fa0a421100
branches: trunk
changeset: 447772:20fa0a421100
user: ryoon <ryoon%NetBSD.org@localhost>
date: Wed Jan 23 11:15:11 2019 +0000
description:
Fix no options DEBUG nor DIAGNOSTIC build
diffstat:
sys/dev/pci/if_ena.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 44dec6a8a03a -r 20fa0a421100 sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c Wed Jan 23 09:47:52 2019 +0000
+++ b/sys/dev/pci/if_ena.c Wed Jan 23 11:15:11 2019 +0000
@@ -31,7 +31,7 @@
#if 0
__FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.12 2018/12/22 20:57:44 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.13 2019/01/23 11:15:11 ryoon Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2045,7 +2045,9 @@
kcpuset_destroy(affinity);
for (i--; i >= 0; i--) {
+#if defined(DEBUG) || defined(DIAGNOSTIC)
int irq_slot = i + irq_off;
+#endif
KASSERT(adapter->sc_ihs[irq_slot] != NULL);
pci_intr_disestablish(adapter->sc_pa.pa_pc, adapter->sc_ihs[i]);
adapter->sc_ihs[i] = NULL;
Home |
Main Index |
Thread Index |
Old Index