* Re: constants.c fix for 2.5.22 compile error
@ 2002-06-17 13:29 Douglas Gilbert
0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2002-06-17 13:29 UTC (permalink / raw)
To: Jason Straight; +Cc: linux-kernel, linux-scsi
Jason Straight wrote:
> 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
--- linux/drivers/scsi/constants.c Mon Jun 17 08:44:48 2002
+++ linux/drivers/scsi/constants.c2522fix Mon Jun 17 09:20:48 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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-17 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 13:29 constants.c fix for 2.5.22 compile error Douglas Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox