drivers/scsi/sd.c gcc-2.95.3

Alexey Dobriyan
2005-12-13T10:16:12Z

On Tue, Dec 13, 2005 at 01:14:13AM -0800, Andrew Morton wrote:
> drivers/scsi/sd.c: In function `sd_read_capacity':
> drivers/scsi/sd.c:1301: internal error--unrecognizable insn:
> (insn 1274 1273 1797 (parallel[
> (set (reg:SI 0 %eax)
> (asm_operands ("") ("=a") 0[
> (reg:DI 1 %edx)
> ]
> [
> (asm_input:DI ("A"))
> ] ("drivers/scsi/sd.c") 1282))
> (set (reg:SI 1 %edx)
> (asm_operands ("") ("=d") 1[
> (reg:DI 1 %edx)
> ]
> [
> (asm_input:DI ("A"))
> ] ("drivers/scsi/sd.c") 1282))
> ] ) -1 (insn_list 1269 (nil))
> (nil))
>
> It'll be workable aroundable of course, but it's a hassle.

FWIW,

--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1282,9 +1282,9 @@ got_data:
sector_div(mb, 1950);

printk(KERN_NOTICE "SCSI device %s: "
- "%llu %d-byte hdwr sectors (%llu MB)\n",
+ "%llu %d-byte hdwr sectors\n",
diskname, (unsigned long long)sdkp->capacity,
- hard_sector, (unsigned long long)mb);
+ hard_sector);
}

/* Rescale capacity to 512-byte units */