Module Name: src Committed By: prlw1 Date: Thu Aug 9 21:16:43 UTC 2018
Modified Files: src/sys/dev/usb: ohci.c uhci.c Log Message: Sprinkle __diagused To generate a diff of this commit: cvs rdiff -u -r1.282 -r1.283 src/sys/dev/usb/ohci.c cvs rdiff -u -r1.281 -r1.282 src/sys/dev/usb/uhci.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/ohci.c diff -u src/sys/dev/usb/ohci.c:1.282 src/sys/dev/usb/ohci.c:1.283 --- src/sys/dev/usb/ohci.c:1.282 Thu Aug 9 06:26:47 2018 +++ src/sys/dev/usb/ohci.c Thu Aug 9 21:16:43 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.282 2018/08/09 06:26:47 mrg Exp $ */ +/* $NetBSD: ohci.c,v 1.283 2018/08/09 21:16:43 prlw1 Exp $ */ /* * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.282 2018/08/09 06:26:47 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.283 2018/08/09 21:16:43 prlw1 Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1389,7 +1389,7 @@ ohci_softintr(void *v) int len, cc; int i, j, actlen, iframes, uedir; ohci_physaddr_t done; - bool polling = sc->sc_bus.ub_usepolling; + bool polling __diagused= sc->sc_bus.ub_usepolling; KASSERT(polling || mutex_owned(&sc->sc_lock)); Index: src/sys/dev/usb/uhci.c diff -u src/sys/dev/usb/uhci.c:1.281 src/sys/dev/usb/uhci.c:1.282 --- src/sys/dev/usb/uhci.c:1.281 Thu Aug 9 06:26:47 2018 +++ src/sys/dev/usb/uhci.c Thu Aug 9 21:16:43 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.281 2018/08/09 06:26:47 mrg Exp $ */ +/* $NetBSD: uhci.c,v 1.282 2018/08/09 21:16:43 prlw1 Exp $ */ /* * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.281 2018/08/09 06:26:47 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.282 2018/08/09 21:16:43 prlw1 Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1555,7 +1555,7 @@ uhci_idone(struct uhci_xfer *ux, ux_comp struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe); uhci_soft_td_t *std; uint32_t status = 0, nstatus; - bool polling = sc->sc_bus.ub_usepolling; + bool polling __diagused = sc->sc_bus.ub_usepolling; int actlen; KASSERT(polling || mutex_owned(&sc->sc_lock));