[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200821155121.nzxjeeoze4h5pone@amazon.com>
Date: Fri, 21 Aug 2020 15:51:21 +0000
From: Clint Sbisa <csbisa@...zon.com>
To: Bjorn Helgaas <bhelgaas@...gle.com>,
Jiri Kosina <trivial@...nel.org>
CC: Clint Sbisa <csbisa@...zon.com>,
Benjamin Herrenschmidt <benh@...zon.com>,
Ali Saidi <alisaidi@...zon.com>,
David Woodhouse <dwmw@...zon.co.uk>,
<linux-pci@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] PCI: Trivial comment fixup for PCI mmap ifdefs
The else/endif comments for pci_{create,remove}_resource_files were
not updated in commit f719582435afe9c7985206e42d804ea6aa315d33 ("PCI:
Add pci_mmap_resource_range() and use it for ARM64").
Signed-off-by: Clint Sbisa <csbisa@...zon.com>
---
drivers/pci/pci-sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 6d78df981d41..cfc67b208616 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1196,10 +1196,10 @@ static int pci_create_resource_files(struct pci_dev *pdev)
}
return 0;
}
-#else /* !HAVE_PCI_MMAP */
+#else /* ! (defined(HAVE_PCI_MMAP) || defined(ARCH_GENERIC_PCI_MMAP_RESOURCE)) */
int __weak pci_create_resource_files(struct pci_dev *dev) { return 0; }
void __weak pci_remove_resource_files(struct pci_dev *dev) { return; }
-#endif /* HAVE_PCI_MMAP */
+#endif /* defined(HAVE_PCI_MMAP) || defined(ARCH_GENERIC_PCI_MMAP_RESOURCE) */
/**
* pci_write_rom - used to enable access to the PCI ROM display
--
2.23.3
Powered by blists - more mailing lists