From: "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" Subject: Re: [PATCH] the address of 'symbols_addresses' will always evaluate as 'true' Date: Wed, 10 Jan 2007 13:54:29 +0200 Message-ID: <200701101354.36798.caglar@pardus.org.tr> References: Reply-To: caglar@pardus.org.tr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1864331610==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1864331610== Content-Type: multipart/signed; boundary="nextPart2378393.3GGpdohV2s"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2378393.3GGpdohV2s Content-Type: multipart/mixed; boundary="Boundary-01=_2PNpFNIwc+VJOHE" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_2PNpFNIwc+VJOHE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 10 Oca 2007 =C3=87ar 12:31 tarihinde, Keir Fraser =C5=9Funlar=C4=B1 yazm=C4= =B1=C5=9Ft=C4=B1:=20 > If that is the *only* build error, then we can just get rid of that > BUG_ON(). It doesn't work any more anyway (that symbol is never zero, even > during initial kernel link when no symbol info is available). > BUG_ON(symbols_num_syms =3D=3D 0) is probably the right replacement. Yes this is the only build error so modified patch attached, tested on x86. Chers =2D-=20 S.=C3=87a=C4=9Flar Onur http://cekirdek.pardus.org.tr/~caglar/ Linux is like living in a teepee. No Windows, no Gates and an Apache in hou= se! --Boundary-01=_2PNpFNIwc+VJOHE Content-Type: text/x-diff; charset="utf-8"; name="gcc42.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gcc42.patch" diff -r c32abbaccdac xen/common/symbols.c =2D-- a/xen/common/symbols.c Tue Jan 09 19:24:12 2007 +0000 +++ b/xen/common/symbols.c Wed Jan 10 13:52:15 2007 +0200 @@ -94,7 +94,7 @@ const char *symbols_lookup(unsigned long unsigned long symbol_end =3D 0; =20 /* This kernel should never had been booted. */ =2D BUG_ON(!symbols_addresses); + BUG_ON(symbols_num_syms =3D=3D 0); =20 namebuf[KSYM_NAME_LEN] =3D 0; namebuf[0] =3D 0; --Boundary-01=_2PNpFNIwc+VJOHE-- --nextPart2378393.3GGpdohV2s Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iD8DBQBFpNP8y7E6i0LKo6YRAntnAJ4vn2F99kxg35oCxk11iMndziFYmQCfTeGh UlUpjiSiNM7o+kuJhvxOfQw= =d8J7 -----END PGP SIGNATURE----- --nextPart2378393.3GGpdohV2s-- --===============1864331610== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1864331610==--