Skip to contentSkip to conversation

arm64: Do not expose PCI mmap through procfs

PATCH In review David Woodhouse 1 participant 1 message Mar 15, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 4/4 arm64: Do not expose PCI mmap through procfs

From: David Woodhouse <[email protected]>

---
We shouldn't do this bit. But you did ask...

 drivers/pci/proc.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/pci/proc.c +5 -0
index 5cd960c..233d549 100644
@@ -17,6 +17,11 @@
 
 static int proc_initialized;	/* = 0 */
 
+#ifdef __aarch64__
+/* ARM64 wants to be special and not expose this through /proc like everyone else */
+#undef HAVE_PCI_MMAP
+#endif
+
 static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence)
 {
 	struct pci_dev *dev = PDE_DATA(file_inode(file));
Signature · 1 line
dwmw2