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

From: Arjan van de Ven (arjanv@fenrus.demon.nl)
Date: Mon Oct 14 2002 - 16:11:55 EST


On Mon, 2002-10-14 at 22:54, Arjan van de Ven wrote:
> On Mon, 2002-10-14 at 22:27, David Mansfield wrote:
> >
> > - sector_t x = block;
> > + volatile sector_t y = 0;
> > + sector_t x = block - y;
> > sector_div(x, (unsigned long)conf->smallest->size);
> > hash = 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....

ehm ignore me I'm blind



-
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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:52 EST