mac80211: fix build without CONFIG_PCI
authorFelix Fietkau <nbd@nbd.name>
Tue, 5 Nov 2019 13:21:31 +0000 (14:21 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 29 Dec 2019 08:08:09 +0000 (09:08 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit fa37dbbc43db23a0ce7256f47943f38a1dcc9027)

package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch

index cae20f5dc39d8a4211bdfa27f3369a333a714763..a41879184b3cd3f15c18e219aa956efe0457e1a9 100644 (file)
@@ -15,7 +15,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        (PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
  #endif
  
-+#if LINUX_VERSION_IS_LESS(5,3,0)
++#if defined(CONFIG_PCI) && LINUX_VERSION_IS_LESS(5,3,0)
 +
 +static inline int
 +LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state)