Subject: port-i386/26630: essattach() in ess_pnpbios.c out of sync
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <afx@pkl.net>
List: netbsd-bugs
Date: 08/12/2004 08:48:10
>Number:         26630
>Category:       port-i386
>Synopsis:       essattach() in ess_pnpbios.c out of sync
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 12 18:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     George F. Costanzo
>Release:        NetBSD 2.0G
>Organization:
>Environment:
NetBSD marx.hkr.ath.cx 2.0G NetBSD 2.0G (SARIG) #63: Fri Jul 16 01:22:29 EST 2004  root@marx.hkr.ath.cx:/usr/obj.i386/usr/src/sys/arch/i386/compile/SARIG i386
>Description:
Seems /usr/src/sys/arch/i386/pnpbios/ess_pnpbios.c calls essattach() with the incorrect amount of arguments since drochner commited rev 1.19 of /usr/src/sys/dev/isa/essvar.h. This prevents the kernel being built with the error:

#   compile  SARIG/ess_pnpbios.o
/usr/tools.i386/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I.
-I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DDUMMY_NOPS -DNMBCLUSTERS=2048 -DUCONSOLE -DLKM -DMAXUSERS=12 -D_KERNEL
-D_KERNEL_OPT -c /usr/src/sys/arch/i386/pnpbios/ess_pnpbios.c
/usr/src/sys/arch/i386/pnpbios/ess_pnpbios.c: In function `ess_pnpbios_attach':
/usr/src/sys/arch/i386/pnpbios/ess_pnpbios.c:143: error: too few arguments to function `essattach'

*** Failed target:  ess_pnpbios.o

>How-To-Repeat:
ess*            at pnpbios? index ?     # ESS AudioDrive
./build.sh kernel
>Fix:
--- sys/arch/i386/pnpbios/ess_pnpbios.c.orig    2004-08-12 21:01:28.000000000 +1000
+++ sys/arch/i386/pnpbios/ess_pnpbios.c 2004-08-12 21:01:47.000000000 +1000
@@ -140,6 +140,6 @@
                return;
        }
 
-       essattach(sc);
+       essattach(sc, 0);
 }
>Release-Note:
>Audit-Trail:
>Unformatted: