[trivial][patch] no more warnings [3/3] ide_scan_direction

From: Matthew Dobson (colpatch@us.ibm.com)
Date: Thu Jul 10 2003 - 18:52:06 EST


ide_scan_direction is defined in general, but only ever referenced in
code wrapped by CONFIG_BLK_DEV_IDEPCI. This wraps the definition of
ide_scan_direction in CONFIG_BLK_DEV_IDEPCI, too, to silence warnings
about being defined and not used.

Cheers!

-Matt

diff -Nurp --exclude-from=/home/mcd/.dontdiff linux-2.5.74-vanilla/drivers/ide/ide.c linux-2.5.74-warnings/drivers/ide/ide.c
--- linux-2.5.74-vanilla/drivers/ide/ide.c Wed Jul 2 13:43:59 2003
+++ linux-2.5.74-warnings/drivers/ide/ide.c Thu Jul 10 14:47:24 2003
@@ -180,7 +180,9 @@ static int initializing; /* set while in
 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:37 EST