From a16a7cd862ef57607d63f8aef013d7465f7d7b6c Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Mon, 16 Feb 2004 15:39:36 -0800 Subject: [PATCH] fix build with CONFIG_BLK_DEV_IDEDMA=n (once again) My "__ide_dma_off()" cleanup uncovered some code that shouldn't be compiled when CONFIG_BLK_DEV_IDEDMA=n. Fix it and kill a warning in setup-pci.c. Noticed by Martin Diehl . --- include/linux/ide.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/ide.h b/include/linux/ide.h index 92c7daf0a896..f7c97c9b0b8f 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -1626,6 +1626,9 @@ extern ide_startstop_t __ide_dma_queued_read(ide_drive_t *drive); extern ide_startstop_t __ide_dma_queued_write(ide_drive_t *drive); extern ide_startstop_t __ide_dma_queued_start(ide_drive_t *drive); #endif + +#else +static inline int __ide_dma_off(ide_drive_t *drive) { return 0; } #endif /* CONFIG_BLK_DEV_IDEDMA */ #ifndef CONFIG_BLK_DEV_IDEDMA_PCI -- cgit v1.2.3