[PATCH] ahci, msix: Fix build error for !PCI_MSI

From: Robert Richter
Date: Wed Jun 17 2015 - 04:33:22 EST


Fixing a build error if PCI_MSI is unset:

drivers/ata/ahci.c: In function âmsix_get_descâ:
drivers/ata/ahci.c:1210:2: error: âstruct pci_devâ has no member named âmsi_listâ

Catched by Fengguang's build bot.

Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Signed-off-by: Robert Richter <rrichter@xxxxxxxxxx>
---
drivers/ata/ahci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index bdedaa4f9d7b..99cc9526ae95 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1205,13 +1205,14 @@ static inline void ahci_gtf_filter_workaround(struct ata_host *host)

static struct msi_desc *msix_get_desc(struct pci_dev *dev, u16 entry)
{
+#ifdef CONFIG_PCI_MSI
struct msi_desc *desc;

list_for_each_entry(desc, &dev->msi_list, list) {
if (desc->msi_attrib.entry_nr == entry)
return desc;
}
-
+#endif
return NULL;
}

--
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/