--- 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;