Subject: kern/6689: kernel build fail without USB_DEBUG
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 12/30/1998 22:10:13
>Number:         6689
>Category:       kern
>Synopsis:       kernel build fail without USB_DEBUG
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 30 05:20:01 1998
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
>Release:        NetBSD-current 1998/12/30
>Environment:
NetBSD land.sky.yamashina.kyoto.jp 1.3I NetBSD 1.3I (LAND) #42: Wed Dec 30 21:45:51 JST 1998     taca@land.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/LAND i386

>Description:
	Kernel build fail without USB_DEBUG option.
>How-To-Repeat:
	Config without USB_DEBUG
>Fix:

Index: sys/dev/usb/uhci.c
*** sys/dev/usb/uhci.c	1998/12/30 12:34:00	1.1.1.1.2.4
--- sys/dev/usb/uhci.c	1998/12/30 12:39:42
***************
*** 1645,1652 ****
--- 1645,1654 ----
  	usbd_request_handle reqh;
  {
  	struct uhci_pipe *upipe = (struct uhci_pipe *)reqh->pipe;
+ #ifdef USB_DEBUG
  	usbd_device_handle dev = upipe->pipe.device;
  	uhci_softc_t *sc = (uhci_softc_t *)dev->bus;
+ #endif
  
  	DPRINTFN(1,("uhci_device_isoc_transfer: sc=%p\n", sc));
  	if (upipe->u.iso.bufsize == 0)

>Audit-Trail:
>Unformatted: