summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-05 17:19:47 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-05 17:19:47 -0400
commit8a70f8dc08dd40b7f8ac77280eaa99a8c6bc46f4 (patch)
treea581d2372074c4ddedee1888822b832f3d8c8bc7 /drivers
parent05b308e1df6d9d673daedb517969241f41278b52 (diff)
downloadop-kernel-dev-8a70f8dc08dd40b7f8ac77280eaa99a8c6bc46f4.zip
op-kernel-dev-8a70f8dc08dd40b7f8ac77280eaa99a8c6bc46f4.tar.gz
[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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/sata_mv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index 84b488f..d457f56 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -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
OpenPOWER on IntegriCloud