Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen Fix build with DIAGNOSTIC



details:   https://anonhg.NetBSD.org/src/rev/6b8b154f8cf3
branches:  trunk
changeset: 1009331:6b8b154f8cf3
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Apr 20 19:20:35 2020 +0000

description:
Fix build with DIAGNOSTIC

diffstat:

 sys/arch/xen/xen/xbdback_xenbus.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 2c177f8efa4c -r 6b8b154f8cf3 sys/arch/xen/xen/xbdback_xenbus.c
--- a/sys/arch/xen/xen/xbdback_xenbus.c Mon Apr 20 18:10:10 2020 +0000
+++ b/sys/arch/xen/xen/xbdback_xenbus.c Mon Apr 20 19:20:35 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbdback_xenbus.c,v 1.83 2020/04/20 16:12:28 jdolecek Exp $      */
+/*      $NetBSD: xbdback_xenbus.c,v 1.84 2020/04/20 19:20:35 bouyer Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.83 2020/04/20 16:12:28 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.84 2020/04/20 19:20:35 bouyer Exp $");
 
 #include <sys/atomic.h>
 #include <sys/buf.h>
@@ -1049,7 +1049,6 @@
 {
        int work_to_do;
 
-       KASSERT(xbdi->xbdio_io == NULL);
        RING_FINAL_CHECK_FOR_REQUESTS(&xbdi->xbdi_ring.ring_n, work_to_do);
        if (work_to_do)
                xbdi->xbdi_cont = xbdback_co_main;
@@ -1233,7 +1232,6 @@
 xbdback_co_do_io(struct xbdback_instance *xbdi, void *obj)
 {
        struct xbdback_io *xbd_io = xbdi->xbdi_io;
-       int nsegs __diagused;
 
        switch (xbd_io->xio_operation) {
        case BLKIF_OP_FLUSH_DISKCACHE:



Home | Main Index | Thread Index | Old Index