make buildkernel currently broken in sys/pci/agp_intel.c

From: Lukas Ertl <l.ertl_at_univie.ac.at>
Date: Tue, 27 May 2003 21:29:06 +0200 (CEST)
cc -c -O -pipe -march=athlon -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev
-I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL
-include opt_global.h -fno-common  -mno-align-long-strings
-mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/pci/agp_intel.c
/usr/src/sys/pci/agp_intel.c: In function `agp_intel_attach':
/usr/src/sys/pci/agp_intel.c:173: `value' undeclared (first use in this
function)
/usr/src/sys/pci/agp_intel.c:173: (Each undeclared identifier is reported
only once
/usr/src/sys/pci/agp_intel.c:173: for each function it appears in.)
*** Error code 1

This is probably because of rev. 1.13, which jhb_at_ committed just about an
hour ago.

Fix:

---8<---
Index: sys/pci/agp_intel.c
===================================================================
RCS file: /u/cvs/cvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.13
diff -u -r1.13 agp_intel.c
--- sys/pci/agp_intel.c	27 May 2003 18:23:56 -0000	1.13
+++ sys/pci/agp_intel.c	27 May 2003 19:28:38 -0000
_at__at_ -131,6 +131,7 _at__at_
 	struct agp_gatt *gatt;
 	u_int32_t type = pci_get_devid(dev);
 	int error;
+	u_long value;

 	error = agp_generic_attach(dev);
 	if (error)
---8<---

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl_at_univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien                   http://mailbox.univie.ac.at/~le/
Received on Tue May 27 2003 - 10:29:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:09 UTC