diff --git a/sys/conf/files b/sys/conf/files index ea576cfc6e2c..23dbe253684d 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1,4 +1,4 @@ -# $NetBSD: files,v 1.1159 2016/05/27 20:01:49 bouyer Exp $ +# $NetBSD: files,v 1.1160 2016/06/23 07:32:12 skrll Exp $ # @(#)files.newconf 7.5 (Berkeley) 5/10/93 version 20150846 @@ -193,6 +193,14 @@ defflag opt_kernhist.h KERNHIST KERNHIST_PRINT defparam opt_kernhist.h KERNHIST_DELAY file kern/kern_history.c kernhist +# +# These are here for the benefit of kern_history.c so that +# UVMHIST can be built in kernels without usb. +# +# top level usb debug defines +defflag opt_usb.h USB_DEBUG: KERNHIST +defparam opt_usb.h USBHIST_SIZE + # # System monitoring framework # diff --git a/sys/dev/usb/files.usb b/sys/dev/usb/files.usb index b8b15b26af2f..d752710eac9c 100644 --- a/sys/dev/usb/files.usb +++ b/sys/dev/usb/files.usb @@ -1,16 +1,12 @@ -# $NetBSD: files.usb,v 1.139 2016/04/26 10:38:43 skrll Exp $ +# $NetBSD: files.usb,v 1.140 2016/06/23 07:32:12 skrll Exp $ # # Config file and device description for machine-independent USB code. # Included by ports that need it. Ports that use it must provide # their own "major" declarations for the appropriate devices. defflag USBVERBOSE -defparam opt_usb.h USBHIST_SIZE defflag opt_usb.h USB_FRAG_DMA_WORKAROUND -# top level usb debug defines -defflag opt_usb.h USB_DEBUG: KERNHIST - # HC controllers defflag opt_usb.h EHCI_DEBUG: USB_DEBUG defflag opt_usb.h OHCI_DEBUG: USB_DEBUG diff --git a/sys/kern/kern_history.c b/sys/kern/kern_history.c index b6eb9d682e6a..d13aa653a635 100644 --- a/sys/kern/kern_history.c +++ b/sys/kern/kern_history.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_history.c,v 1.5 2016/06/22 07:44:02 skrll Exp $ */ +/* $NetBSD: kern_history.c,v 1.6 2016/06/23 07:32:12 skrll Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.5 2016/06/22 07:44:02 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.6 2016/06/23 07:32:12 skrll Exp $"); #include "opt_ddb.h" #include "opt_kernhist.h" @@ -46,11 +46,6 @@ __KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.5 2016/06/22 07:44:02 skrll Exp $ #include #include -#include "usb.h" -#if NUSB == 0 -#undef USB_DEBUG -#endif - #ifdef UVMHIST #include #endif