Hi, all.

I cannot make a kernel on FreeBSD-current. I get a following compile
error message.

/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c: In
function `bktr_detach':
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484:
`unit' undeclared (first use in this function)
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: (Each 
undeclared identifier is reported only once
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: for
each function it appears in.)
*** Error code 1

Stop in /work/src/sys/modules/bktr/bktr.
*** Error code 1

I think this is a simple problem. "unit" is undeclared in bktr_detach.
So I make a simple patch.

ns# diff bktr_os.c.org bktr_os.c
466a467
>       unsigned int    unit;
467a469
>       unit = device_get_unit(dev);

----
Tomoaki SATO / [EMAIL PROTECTED]
TOSHIBA DESIGN CENTER


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to