From 91dde4291ce1dd30091e324c9fe90ecce1e7978b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 5 Nov 2019 14:21:31 +0100 Subject: [PATCH] mac80211: fix build without CONFIG_PCI Signed-off-by: Felix Fietkau (cherry-picked from commit fa37dbbc43db23a0ce7256f47943f38a1dcc9027) --- ...1-backport-add-pci_disable_link_state-wrapper-with-ret.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch b/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch index cae20f5dc3..a41879184b 100644 --- a/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch +++ b/package/kernel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch @@ -15,7 +15,7 @@ Signed-off-by: Felix Fietkau (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) -- 2.25.1