git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
drivers
/
ide
/
ide-dma.c
diff --git
a/drivers/ide/ide-dma.c
b/drivers/ide/ide-dma.c
index
7c3a13e
..
c481be8
100644
(file)
--- a/
drivers/ide/ide-dma.c
+++ b/
drivers/ide/ide-dma.c
@@
-74,6
+74,7
@@
*
*/
*
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
@@
-205,7
+206,8
@@
int ide_build_sglist(ide_drive_t *drive, struct request *rq)
ide_hwif_t *hwif = HWIF(drive);
struct scatterlist *sg = hwif->sg_table;
ide_hwif_t *hwif = HWIF(drive);
struct scatterlist *sg = hwif->sg_table;
- BUG_ON((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256);
+ if ((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256)
+ BUG();
ide_map_sg(drive, rq);
ide_map_sg(drive, rq);
@@
-750,7
+752,7
@@
void ide_dma_verbose(ide_drive_t *drive)
goto bug_dma_off;
printk(", DMA");
} else if (id->field_valid & 1) {
goto bug_dma_off;
printk(", DMA");
} else if (id->field_valid & 1) {
-
goto bug_dma_off
;
+
printk(", BUG")
;
}
return;
bug_dma_off:
}
return;
bug_dma_off:
@@
-945,7
+947,8
@@
void ide_setup_dma (ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_p
}
printk("\n");
}
printk("\n");
- BUG_ON(!hwif->dma_master);
+ if (!(hwif->dma_master))
+ BUG();
}
EXPORT_SYMBOL_GPL(ide_setup_dma);
}
EXPORT_SYMBOL_GPL(ide_setup_dma);