From nobody@FreeBSD.org  Thu Apr 14 15:01:39 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BF55C16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 15:01:39 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A00C143D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 15:01:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3EF1dWn001156
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 15:01:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j3EF1d9S001155;
	Thu, 14 Apr 2005 15:01:39 GMT
	(envelope-from nobody)
Message-Id: <200504141501.j3EF1d9S001155@www.freebsd.org>
Date: Thu, 14 Apr 2005 15:01:39 GMT
From: Rafael B Albuquerque <rafael@totalsecurity.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devclass_get_drivers
X-Send-Pr-Version: www-2.3

>Number:         79911
>Category:       kern
>Synopsis:       kernel build failure: devclass_get_drivers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 14 15:10:18 GMT 2005
>Closed-Date:    Thu Apr 14 18:22:55 GMT 2005
>Last-Modified:  Thu Apr 14 18:22:55 GMT 2005
>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@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:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Apr 14 18:22:00 GMT 2005 
State-Changed-Why:  
Fixed.  Please report kernel build failures to an appropriate 
maillist (stable@freebsd.org in this case). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79911 
>Unformatted:
