Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 12:52:31 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   Re: [head tinderbox] failure on i386/i386
Message-ID:  <20080115205231.GF29422@bunrab.catwhisker.org>
In-Reply-To: <20080115172200.4332F73039@freebsd-current.sentex.ca>
References:  <20080115172200.4332F73039@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--vhOf6eAHdfH9MSjZ
Content-Type: multipart/mixed; boundary="II8oT75hj15qngTC"
Content-Disposition: inline


--II8oT75hj15qngTC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 15, 2008 at 12:22:00PM -0500, FreeBSD Tinderbox wrote:
> ...
> cc -c   -std=3Dc99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro=
totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef=
 -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/src/sys -I/src/sys=
/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h =
-fno-common -finline-limit=3D8000 --param inline-unit-growth=3D100 --param =
large-function-growth=3D1000 -DGPROF -falign-functions=3D16 -DGPROF4 -DGUPR=
OF -fno-builtin -mno-align-long-strings -mpreferred-stack-boundary=3D2  -mn=
o-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror -pg -m=
profiler-epilogue /src/sys/dev/cxgb/cxgb_sge.c
> cc1: warnings being treated as errors
> /src/sys/dev/cxgb/cxgb_sge.c: In function 't3_encap':
> /src/sys/dev/cxgb/cxgb_sge.c:1254: warning: format '%ld' expects type 'lo=
ng int', but argument 2 has type 'unsigned int'
> *** Error code 1
>=20
> Stop in /obj/src/sys/LINT.
> *** Error code 1
>=20
> Stop in /src.
> *** Error code 1
>=20
> Stop in /src.

Attached is the hack I used to get through this, in case it helps
someone.

Caveat:  I don't use cxgb(4) myself, so I haven't actually tested the
result.

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
I submit that "conspiracy" would be an appropriate collective noun for cats.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--II8oT75hj15qngTC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cxgb.patch"
Content-Transfer-Encoding: quoted-printable

Index: cxgb_sge.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/freebsd/src/sys/dev/cxgb/cxgb_sge.c,v
retrieving revision 1.42
diff -u -r1.42 cxgb_sge.c
--- cxgb_sge.c	15 Jan 2008 08:08:09 -0000	1.42
+++ cxgb_sge.c	15 Jan 2008 20:08:56 -0000
@@ -1251,7 +1251,7 @@
 	KASSERT(txsd->mi.mi_base =3D=3D NULL, ("overwrting valid entry mi_base=3D=
=3D%p",
 		txsd->mi.mi_base));
 	if (cxgb_debug)
-		printf("uipc_mvec PIO_LEN=3D%ld\n", PIO_LEN);
+		printf("uipc_mvec PIO_LEN=3D%ud\n", PIO_LEN);
=20
 	if (count > 1) {
 		panic("count > 1 not support in CVS\n");
Index: sys/uipc_mvec.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/freebsd/src/sys/dev/cxgb/sys/uipc_mvec.c,v
retrieving revision 1.21
diff -u -r1.21 uipc_mvec.c
--- sys/uipc_mvec.c	15 Jan 2008 08:08:09 -0000	1.21
+++ sys/uipc_mvec.c	15 Jan 2008 20:13:23 -0000
@@ -209,7 +209,7 @@
 		m_tag_delete_chain(n, NULL);
=20
 	if (cxgb_debug)
-		printf("cxgb_sge PIO_LEN=3D%ld\n", PIO_LEN);
+		printf("cxgb_sge PIO_LEN=3D%ud\n", PIO_LEN);
 =09
 	if (n->m_pkthdr.len <=3D PIO_LEN)
 		return (0);

--II8oT75hj15qngTC--

--vhOf6eAHdfH9MSjZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iEYEARECAAYFAkeNHQ4ACgkQmprOCmdXAD27/QCePl8fPxmWVGjXeW/1Qsq2Vyxj
LrwAnjRRSI6yQiZKyA3iLjVTWl+7a5AQ
=+htg
-----END PGP SIGNATURE-----

--vhOf6eAHdfH9MSjZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080115205231.GF29422>