Skip to content

Commit fa33adc

Browse files
committed
Merge tag 'pci-v6.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
Pull PCI fix from Bjorn Helgaas: - Fix a PTM debugfs build error with CONFIG_DEBUG_FS=n && CONFIG_PCIE_PTM=y (Manivannan Sadhasivam) * tag 'pci-v6.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: PCI/PTM: Build debugfs code only if CONFIG_DEBUG_FS is enabled
2 parents 7abdafd + 5aa326a commit fa33adc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/pcie/ptm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ bool pcie_ptm_enabled(struct pci_dev *dev)
254254
}
255255
EXPORT_SYMBOL(pcie_ptm_enabled);
256256

257+
#if IS_ENABLED(CONFIG_DEBUG_FS)
257258
static ssize_t context_update_write(struct file *file, const char __user *ubuf,
258259
size_t count, loff_t *ppos)
259260
{
@@ -552,3 +553,4 @@ void pcie_ptm_destroy_debugfs(struct pci_ptm_debugfs *ptm_debugfs)
552553
debugfs_remove_recursive(ptm_debugfs->debugfs);
553554
}
554555
EXPORT_SYMBOL_GPL(pcie_ptm_destroy_debugfs);
556+
#endif

0 commit comments

Comments
 (0)