kern/55535: [patch] include missing in dev/usb/usbdivar.h (current)

Tobias Roth ports at fsck.ch
Wed Aug 13 02:50:21 PDT 2003


>Number:         55535
>Category:       kern
>Synopsis:       [patch] include missing in dev/usb/usbdivar.h (current)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 13 02:50:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tobias Roth <ports at fsck.ch>
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD angel-one.fsck.ch 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Aug 12 15:02:35 CEST 2003 roth at angel-one.fsck.ch:/usr/obj/usr/src/sys/ANGEL-ONE i386

>Description:
	With the last cvs commit of usbdivar.h (1.39 to 1.40), bus_dma
        awareness was added. But an #include seems to have been forgotten,
        resulting in a syntax error when including usbdivar.h.
>How-To-Repeat:
        Compile anything that includes dev/usb/usbdivar.h, for example
        Maksim Evmenkins Bluetooth stack.
>Fix:
        The patch below fixes things for me, however I have no idea
        if this is the correct way to fix thing or if it breaks something
        else. Someone with more insight please review it and take
        appropriate measures.


        --- /usr/src/sys/dev/usb/usbdivar.h     Wed Aug 13 11:25:50 2003
        +++ sys/dev/usb/usbdivar.h      Wed Aug 13 11:07:38 2003
        @@ -42,6 +42,8 @@
         #include <sys/callout.h>
         #endif
         
        +#include <machine/bus.h>
        +
         /* From usb_mem.h */
          DECLARE_USB_DMA_T;
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list