On Fri, May 26, 2006 at 05:29:25PM +0100, Alan Cox wrote: > > - if (ret == -1) { > + if (ret == -1 && capacity < (1ULL << 32)) { > /* pick some standard mapping with at most 1024 cylinders, won't that provoke a gcc warning when sector_t is 32-bit? how about ... + if (ret == -1 && ((capacity >> 16) >> 16) > 0) instead? - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html