public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Dominik Geisel <devnull@geisel.info>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	torvalds@transmeta.com
Subject: Re: 2.5.22 fails to compile, constants.c
Date: 17 Jun 2002 14:27:11 -0700	[thread overview]
Message-ID: <1024349231.922.145.camel@sinai> (raw)
In-Reply-To: <Pine.LNX.4.44.0206172304100.14277-100000@pc1.geisel.info>

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
 }
 


      reply	other threads:[~2002-06-17 21:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 21:06 2.5.22 fails to compile, constants.c Dominik Geisel
2002-06-17 21:27 ` Robert Love [this message]

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=1024349231.922.145.camel@sinai \
    --to=rml@tech9.net \
    --cc=devnull@geisel.info \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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