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

Alan Cox
2004-08-15T20:28:34Z

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.