1
0
Fork 0

[libata sata_mv] fix warning

shuffle ifdef location to fix the following warning:
drivers/scsi/sata_mv.c:471: warning: 'mv_dump_mem' defined but not used
hifive-unleashed-5.1
Jeff Garzik 2005-10-05 17:19:47 -04:00
parent 05b308e1df
commit 8a70f8dc08
1 changed files with 3 additions and 2 deletions

View File

@ -467,9 +467,9 @@ static void mv_stop_dma(struct ata_port *ap)
}
}
#ifdef ATA_DEBUG
static void mv_dump_mem(void __iomem *start, unsigned bytes)
{
#ifdef ATA_DEBUG
int b, w;
for (b = 0; b < bytes; ) {
DPRINTK("%p: ", start + b);
@ -479,8 +479,9 @@ static void mv_dump_mem(void __iomem *start, unsigned bytes)
}
printk("\n");
}
#endif
}
#endif
static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
{
#ifdef ATA_DEBUG