Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a70f8dc authored by Jeff Garzik's avatar Jeff Garzik
Browse files

[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
parent 05b308e1
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -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)
static void mv_dump_mem(void __iomem *start, unsigned bytes)
{
{
#ifdef ATA_DEBUG
	int b, w;
	int b, w;
	for (b = 0; b < bytes; ) {
	for (b = 0; b < bytes; ) {
		DPRINTK("%p: ", start + b);
		DPRINTK("%p: ", start + b);
@@ -479,8 +479,9 @@ static void mv_dump_mem(void __iomem *start, unsigned bytes)
		}
		}
		printk("\n");
		printk("\n");
	}
	}
#endif
}
}
#endif

static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
{
{
#ifdef ATA_DEBUG
#ifdef ATA_DEBUG