Date: Thu, 19 Oct 2000 17:11:26 -0700 From: "John W. De Boskey" <jwd@FreeBSD.org> To: freebsd-current@FreeBSD.org Subject: -current GENERIC failure (bktr_os.c:484) Message-ID: <20001019171126.A10513@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi,
I'm seeing the following failure with sources current
as of 19:39pm EDT (Oct 19). Occurs when building the GENERIC kernel.
cc -pipe -g -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include
-mpreferred-stack-boundary=2 -c
/usr/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c
/usr/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c: In function
`bktr_detach':
/usr/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: `unit'
undeclared (first use in this function)
/usr/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: (Each
undeclared identifier is reported only once
/usr/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: for each
function it appears in.)
*** Error code 1
Stop in /usr/src/sys/modules/bktr/bktr.
*** Error code 1
From the source:
#if (__FreeBSD_version >=500000)
if (unit == 0) {
destroy_dev(bktr->vbidev_alias);
destroy_dev(bktr->tunerdev_alias);
destroy_dev(bktr->bktrdev_alias);
}
#endif
Looks like we need a:
unsigned int unit;
unit = device_get_unit(dev);
at the head of the function (wrapped in __FreeBSD_version >=500000 ??)
Comments welcome.
Thanks,
John
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001019171126.A10513>
