public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Jason Straight <jason@blazeconnect.net>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: constants.c fix for 2.5.22 compile error
Date: Mon, 17 Jun 2002 09:29:16 -0400	[thread overview]
Message-ID: <3D0DE42C.E2F8C328@torque.net> (raw)

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
 }
 


                 reply	other threads:[~2002-06-17 13:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D0DE42C.E2F8C328@torque.net \
    --to=dougg@torque.net \
    --cc=jason@blazeconnect.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox