kern/79911: devclass_get_drivers

Rafael B Albuquerque rafael at totalsecurity.com.br
Thu Apr 14 08:10:19 PDT 2005


>Number:         79911
>Category:       kern
>Synopsis:       devclass_get_drivers
>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:   Thu Apr 14 15:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Rafael B Albuquerque
>Release:        5.4-STABLE (14/04/2004 10AM Brazil 07AM GMT)
>Organization:
>Environment:
When I had the problem I was using 5.3-RELEASE, so I did the cvusp and the problem begins, know I have:
FreeBSD slack.slacknet.com.br 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu Apr 14 09:59:22 BRT 2005     root at slack.slacknet.com.br:/usr/obj/usr/src/sys/kernel  i386

>Description:
After updating the source via CVSUP, the problem happens when I was doing the "buildkernel". 
The errormsg was:
no previous prototype for devclass_get_drivers (line 1082 of  /usr/src/sys/kern/subr_bus.c)
The kernel did not compile till this problem was solve.
>How-To-Repeat:
Try to compile the kernel again.
>Fix:
It was a kind of simple error. To solve this error I just add the line:
int     devclass_get_drivers(devclass_t dc, driver_t ***listp, int *countp);

in the files:
/usr/src/sys/sys/bus.h
/usr/include/sys/bus.h

And the problem solved, and now I am with Freebsd 5.4-STABLE
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list