Messages in this thread Patch in this message | | | Subject | Re: 2.5.22 fails to compile, constants.c | From | Robert Love <> | Date | 17 Jun 2002 14:27:11 -0700 |
| |
On Mon, 2002-06-17 at 14:06, Dominik Geisel wrote:
> with gcc-3.1.1, kernel 2.5.22 fails to compile with the following output: > [...] > constants.c: In function `print_sense_internal': > constants.c:997: `i' undeclared (first use in this function) > constants.c:997: (Each undeclared identifier is reported only once > constants.c:997: for each function it appears in.)
Hm, not my code but looks simple enough.
Attached patch is against 2.5.22 and fixes the problem ...
Robert Love
diff -urN linux-2.5.22/drivers/scsi/constants.c linux/drivers/scsi/constants.c --- linux-2.5.22/drivers/scsi/constants.c Sun Jun 16 19:31:34 2002 +++ linux/drivers/scsi/constants.c Mon Jun 17 14:25:02 2002 @@ -993,10 +993,14 @@ } #if !(CONSTANTS & CONST_SENSE) - printk("Raw sense data:"); - for (i = 0; i < s; ++i) - printk("0x%02x ", sense_buffer[i]); - printk("\n"); + { + int i; + + printk("Raw sense data:"); + for (i = 0; i < s; ++i) + printk("0x%02x ", sense_buffer[i]); + printk("\n"); + } #endif } - 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/
| |