constants.c fix for 2.5.22 compile error
Quoted 3 lines · Jason Straight
line 997 in /drivers/scsi/constants.c tries to use i without declaring it.
add i to the int declaration in 910 seems to fix.
This occurs when CONFIG_SCSI_CONSTANTS is not set in the .config file.
BTW Defining CONFIG_SCSI_CONSTANTS adds about 30KB to the size of the kernel (not 12 KB as indicated during configuration).
Doug Gilbert
drivers/scsi/constants.c2522fix renamed from drivers/scsi/constants.c +8 -4
@@ -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 }