aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_mv.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2012-09-28 11:04:10 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-10-01 22:53:23 -0400
commit13b74085d92feda78bad1045516d332a1e9a3407 (patch)
treefbefc92b01ca88fc3ccbdcff1b4986dd6fd15f0d /drivers/ata/sata_mv.c
parent40dad0af2d5c3122d883b2baed4bb39baf6561ec (diff)
sata_mv: Fix warnings when no PCI
Dove can be configured without PCI. We then get a number of warnings: warning: 'msi' defined but not used warning: 'mv5_sht' defined but not used warning: 'mv_dump_pci_cfg' defined but not used. Move around variables and add #ifdef as necassary to fix the warnings. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r--drivers/ata/sata_mv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 311be18d3f03..68f4fb54d627 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -79,8 +79,8 @@
79 * module options 79 * module options
80 */ 80 */
81 81
82static int msi;
83#ifdef CONFIG_PCI 82#ifdef CONFIG_PCI
83static int msi;
84module_param(msi, int, S_IRUGO); 84module_param(msi, int, S_IRUGO);
85MODULE_PARM_DESC(msi, "Enable use of PCI MSI (0=off, 1=on)"); 85MODULE_PARM_DESC(msi, "Enable use of PCI MSI (0=off, 1=on)");
86#endif 86#endif
@@ -652,12 +652,13 @@ static u8 mv_sff_check_status(struct ata_port *ap);
652 * because we have to allow room for worst case splitting of 652 * because we have to allow room for worst case splitting of
653 * PRDs for 64K boundaries in mv_fill_sg(). 653 * PRDs for 64K boundaries in mv_fill_sg().
654 */ 654 */
655#ifdef CONFIG_PCI
655static struct scsi_host_template mv5_sht = { 656static struct scsi_host_template mv5_sht = {
656 ATA_BASE_SHT(DRV_NAME), 657 ATA_BASE_SHT(DRV_NAME),
657 .sg_tablesize = MV_MAX_SG_CT / 2, 658 .sg_tablesize = MV_MAX_SG_CT / 2,
658 .dma_boundary = MV_DMA_BOUNDARY, 659 .dma_boundary = MV_DMA_BOUNDARY,
659}; 660};
660 661#endif
661static struct scsi_host_template mv6_sht = { 662static struct scsi_host_template mv6_sht = {
662 ATA_NCQ_SHT(DRV_NAME), 663 ATA_NCQ_SHT(DRV_NAME),
663 .can_queue = MV_MAX_Q_DEPTH - 1, 664 .can_queue = MV_MAX_Q_DEPTH - 1,
@@ -1252,7 +1253,7 @@ static void mv_dump_mem(void __iomem *start, unsigned bytes)
1252 } 1253 }
1253} 1254}
1254#endif 1255#endif
1255 1256#if defined(ATA_DEBUG) || defined(CONFIG_PCI)
1256static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes) 1257static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
1257{ 1258{
1258#ifdef ATA_DEBUG 1259#ifdef ATA_DEBUG
@@ -1269,6 +1270,7 @@ static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
1269 } 1270 }
1270#endif 1271#endif
1271} 1272}
1273#endif
1272static void mv_dump_all_regs(void __iomem *mmio_base, int port, 1274static void mv_dump_all_regs(void __iomem *mmio_base, int port,
1273 struct pci_dev *pdev) 1275 struct pci_dev *pdev)
1274{ 1276{