Re: [BUG] Compile failure (gcc 2.96 bug?). 2.5.42 raid0.c

Arjan van de Ven (arjanv@redhat.com)
14 Oct 2002 22:54:08 +0200


--=-kOF0EH5MsPk1NYZ0BQeQ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2002-10-14 at 22:27, David Mansfield wrote:
>
> - sector_t x =3D block;
> + volatile sector_t y =3D 0;
> + sector_t x =3D block - y;
> sector_div(x, (unsigned long)conf->smallest->size);
> hash =3D conf->hash_table + x;
> }
this appears to be a bad code bug; do_div() requires the first argument
to be an u64 and we cast it to unsigned long here....

--=-kOF0EH5MsPk1NYZ0BQeQ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA9qy7wxULwo51rQBIRAub8AJ4qxys/NamfcPfsARKKAFajW/T6aQCeMBAs
KHe/JYaie22QxrrNNfi73ZQ=
=WR1G
-----END PGP SIGNATURE-----

--=-kOF0EH5MsPk1NYZ0BQeQ--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/