From: Stephane Ouellette <ouellettes@videotron.ca>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Compile warning in ide.c if CONFIG_BLK_DEV_IDEPCI is not defined
Date: Fri, 08 Aug 2003 23:25:14 -0400 [thread overview]
Message-ID: <3F34699A.9060806@videotron.ca> (raw)
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
Folks,
the following patches fixe a compile warning complaining about an
unused variable in ide.c if CONFIG_BLK_DEV_IDEPCI is not defined.
These patches apply against 2.4.22-rc1-ac1 and 2.6.0-test2.
Stephane Ouellette.
[-- Attachment #2: ide.c-2.4.22-rc1-ac1.diff --]
[-- Type: text/plain, Size: 480 bytes --]
--- linux-2.4.22-rc1-ac1-orig/drivers/ide/ide.c Fri Aug 8 22:34:38 2003
+++ linux-2.4.22-rc1-ac1-fixed/drivers/ide/ide.c Fri Aug 8 23:10:57 2003
@@ -172,7 +172,9 @@
static int system_bus_speed; /* holds what we think is VESA/PCI bus speed */
static int initializing; /* set while initializing built-in drivers */
+#ifdef CONFIG_BLK_DEV_IDEPCI
static int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */
+#endif
#ifdef CONFIG_IDEDMA_AUTO
int noautodma = 0;
[-- Attachment #3: ide.c-2.6.0-test2.diff --]
[-- Type: text/plain, Size: 445 bytes --]
--- linux-2.6.0-test2-orig/drivers/ide/ide.c 2003-07-27 12:59:39.000000000 -0400
+++ linux-2.6.0-test2-fixed/drivers/ide/ide.c 2003-08-08 23:19:44.000000000 -0400
@@ -180,7 +180,9 @@
DECLARE_MUTEX(ide_cfg_sem);
spinlock_t ide_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
+#ifdef CONFIG_BLK_DEV_IDEPCI
static int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */
+#endif
#ifdef CONFIG_IDEDMA_AUTO
int noautodma = 0;
reply other threads:[~2003-08-09 3:25 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=3F34699A.9060806@videotron.ca \
--to=ouellettes@videotron.ca \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.