Skip to contentSkip to conversation

Compile warning in ide.c if CONFIG_BLK_DEV_IDEPCI is not defined

PATCH New Stephane Ouellette 1 participant 1 message Aug 9, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compile warning in ide.c if CONFIG_BLK_DEV_IDEPCI is not defined

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.

drivers/ide/ide.c +2 -0
@@ -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;
drivers/ide/ide.c +2 -0
@@ -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;