no more warnings [3/3] ide_scan_direction
PATCH 1/1 no more warnings [3/3] ide_scan_direction
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
drivers/ide/ide.c +2 -0
@@ -180,7 +180,9 @@ static int initializing; /* set while inDECLARE_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 ;