Re: PATCH: fixup incomplete ident blocks on ITE raid volumes

From: Alan Cox
Date: Sun Aug 15 2004 - 15:31:02 EST


On Sun, Aug 15, 2004 at 10:28:13PM +0200, Martin Schlemmer wrote:
> > + }
> > + id->cyls = 1 + id->lba_capacity_2 / (id->heads * id->sectors);
> > + /* LBA28 is ok, DMA is ok, UDMA data is valid */

Change that to use sector_div() and it should be fine. My gcc didn't end
up generating internal gcc library helpers for that so I didnt notice.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/