Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Unbreak the build for i386



details:   https://anonhg.NetBSD.org/src/rev/383ca4f9968c
branches:  trunk
changeset: 797354:383ca4f9968c
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Jul 15 03:40:06 2014 +0000

description:
Unbreak the build for i386

__debugused => XHCI_DEBUG

diffstat:

 sys/dev/usb/xhci.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 5e3540797813 -r 383ca4f9968c sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Tue Jul 15 02:25:45 2014 +0000
+++ b/sys/dev/usb/xhci.c        Tue Jul 15 03:40:06 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.18 2014/07/15 02:25:45 ozaki-r Exp $        */
+/*     $NetBSD: xhci.c,v 1.19 2014/07/15 03:40:06 ozaki-r Exp $        */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.18 2014/07/15 02:25:45 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.19 2014/07/15 03:40:06 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2822,8 +2822,10 @@
 xhci_device_intr_done(usbd_xfer_handle xfer)
 {
        struct xhci_softc * const sc = xfer->pipe->device->bus->hci_private;
-       struct xhci_slot * const xs __debugused = xfer->pipe->device->hci_private;
-       const u_int dci __debugused = xhci_ep_get_dci(xfer->pipe->endpoint->edesc);
+#ifdef XHCI_DEBUG
+       struct xhci_slot * const xs = xfer->pipe->device->hci_private;
+       const u_int dci = xhci_ep_get_dci(xfer->pipe->endpoint->edesc);
+#endif
        const u_int endpt = xfer->pipe->endpoint->edesc->bEndpointAddress;
        const bool isread = UE_GET_DIR(endpt) == UE_DIR_IN;
        DPRINTF(("%s\n", __func__));



Home | Main Index | Thread Index | Old Index