Subject: Minor fix re: USELEDS
To: None <port-hp700@netbsd.org>
From: Sergey Svishchev <svs@ropnet.ru>
List: port-hp700
Date: 09/17/2006 16:42:01
--8NvZYKFJsRX2Djef
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Good day,

Kernel won't build without option USELEDS -- here's the fix:

--- sys/arch/hp700/dev/asp.c	11 Dec 2005 12:17:24 -0000	1.9
+++ sys/arch/hp700/dev/asp.c	28 Jan 2006 14:52:34 -0000
@@ -225,8 +225,10 @@
 		ga.ga_ether_address, sizeof(ga.ga_ether_address));
 	bus_space_unmap(ca->ca_iot, ioh, sizeof(ga.ga_ether_address));
=20
+#ifdef	USELEDS
 	machine_ledaddr =3D &sc->sc_trs->asp_cled;
 	machine_ledword =3D asp_spus[sc->sc_trs->asp_spu].ledword;
+#endif
=20
 	/* reset ASP */
 	/* sc->sc_hw->asp_reset =3D 1; */
--- sys/arch/hp700/gsc/gscbus.c	11 Dec 2005 12:17:24 -0000	1.12
+++ sys/arch/hp700/gsc/gscbus.c	17 Sep 2006 11:57:05 -0000
@@ -144,8 +144,10 @@
=20
 	sc->sc_ga =3D *ga;
=20
+#ifdef USELEDS
 	if (machine_ledaddr)
 		printf(": %sleds", machine_ledword? "word" : "");
+#endif
=20
 	printf ("\n");
=20
--=20
Sergey Svishchev

--8NvZYKFJsRX2Djef
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Comment: ''

iD8DBQFFDUKZ3P+wmuUns7URAshnAJ9cpZZZYJe0IUCnW2vDjWKfHB+newCghZx9
tEZroDNAZQCm6RWEzyDY0wE=
=zwMm
-----END PGP SIGNATURE-----

--8NvZYKFJsRX2Djef--