Module Name: src Committed By: ozaki-r Date: Tue Jul 15 03:40:06 UTC 2014
Modified Files: src/sys/dev/usb: xhci.c Log Message: Unbreak the build for i386 __debugused => XHCI_DEBUG To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/xhci.c diff -u src/sys/dev/usb/xhci.c:1.18 src/sys/dev/usb/xhci.c:1.19 --- src/sys/dev/usb/xhci.c:1.18 Tue Jul 15 02:25:45 2014 +++ src/sys/dev/usb/xhci.c Tue Jul 15 03:40:06 2014 @@ -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 @@ static void 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__));