]> git.baikalelectronics.ru Git - kernel.git/commit
ahci, msix: Fix build error for !PCI_MSI
authorRobert Richter <robert.richter@caviumnetworks.com>
Wed, 17 Jun 2015 13:30:02 +0000 (15:30 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 17 Jun 2015 18:16:42 +0000 (14:16 -0400)
commit32eb8f46ebf3c0b2899b4ba22d9cd3d1e0974468
tree5dbd6135c7eeec01a175d28a0becab4ac6bd848d
parent36a88c7593a8197ca3e135f215be4ff51e072bea
ahci, msix: Fix build error for !PCI_MSI

It turned out the irq vector of the msix can be obtained from struct
msix_entry. This makes the lookup function for msi_desc obsolete.

This fixes 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@intel.com>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c