This paride driver seems to have been missed with all the sector_t
and sector_div() business.
--- akpm-2.5.41-3/drivers/block/paride/pf.c 2002-10-11 06:09:31.000000000 -0700
+++ wli-2.5.41-3/drivers/block/paride/pf.c 2002-10-11 06:38:16.000000000 -0700
@@ -369,11 +369,11 @@
return -EINVAL;
capacity = get_capacity(pf->disk);
if (capacity < PF_FD_MAX) {
- g.cylinders = capacity / (PF_FD_HDS * PF_FD_SPT);
+ g.cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT);
g.heads = PF_FD_HDS;
g.sectors = PF_FD_SPT;
} else {
- g.cylinders = capacity / (PF_HD_HDS * PF_HD_SPT);
+ g.cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT);
g.heads = PF_HD_HDS;
g.sectors = PF_HD_SPT;
}
-
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/