*
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
if (rq->rq_disk) {
ide_driver_t *drv;
- drv = *(ide_driver_t **)rq->rq_disk->private_data;
+ drv = *(ide_driver_t **)rq->rq_disk->private_data;;
drv->end_request(drive, 1, rq->nr_sectors);
} else
ide_end_request(drive, 1, rq->nr_sectors);
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);
goto bug_dma_off;
printk(", DMA");
} else if (id->field_valid & 1) {
- goto bug_dma_off;
+ printk(", BUG");
}
return;
bug_dma_off:
}
printk("\n");
- BUG_ON(!hwif->dma_master);
+ if (!(hwif->dma_master))
+ BUG();
}
EXPORT_SYMBOL_GPL(ide_setup_dma);