]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: compile out msi/msix infrastructure
authorDan Williams <dan.j.williams@intel.com>
Sun, 6 Dec 2015 00:18:44 +0000 (16:18 -0800)
committerTejun Heo <tj@kernel.org>
Mon, 7 Dec 2015 14:50:01 +0000 (09:50 -0500)
commit76085977469f6e49f9b9d8104577806eadbceac9
tree567649dfa2f875dcb34913af8d6cfd54026a04d5
parent8a3aadebd080736f273018a8132ac27c614c8fb2
ahci: compile out msi/msix infrastructure

Quoting Arnd:
    The AHCI driver is used for some on-chip devices that do not use PCI
    for probing, and it can be built even when CONFIG_PCI is disabled, but
    that now results in a build failure:

    ata/libahci.c: In function 'ahci_host_activate_multi_irqs':
    ata/libahci.c:2475:4: error: invalid use of undefined type 'struct msix_entry'
    ata/libahci.c:2475:21: error: dereferencing pointer to incomplete type 'struct msix_entry'

Add ifdef CONFIG_PCI_MSI infrastructure to compile out the multi-msi and
multi-msix code.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Tested--by: Arnd Bergmann <arnd@arndb.de>
[arnd: fix up pci enabled case]
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Fixes: 16bf5bc42592 ("ahci: per-port msix support")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.h
drivers/ata/libahci.c