From: Manivannan Sadhasivam Date: Tue, 1 Jul 2025 12:08:56 +0000 (+0530) Subject: PCI: dwc: Make dw_pcie_ptm_ops static X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1dc61aede55a571d34fe20415b1413a3c86ee24;p=thirdparty%2Fkernel%2Flinux.git PCI: dwc: Make dw_pcie_ptm_ops static dw_pcie_ptm_ops is not used outside of this file, so make it static. This also fixes the sparse warning: drivers/pci/controller/dwc/pcie-designware-debugfs.c:868:27: warning: symbol 'dw_pcie_ptm_ops' was not declared. Should it be static? Fixes: 852a1fdd34a8 ("PCI: dwc: Add debugfs support for PTM context") Reported-by: Bjorn Helgaas Closes: https://lore.kernel.org/linux-pci/20250617231210.GA1172093@bhelgaas Signed-off-by: Manivannan Sadhasivam Link: https://patch.msgid.link/20250701120856.15839-1-mani@kernel.org --- diff --git a/drivers/pci/controller/dwc/pcie-designware-debugfs.c b/drivers/pci/controller/dwc/pcie-designware-debugfs.c index 6f438a36f840..0fbf86c0b97e 100644 --- a/drivers/pci/controller/dwc/pcie-designware-debugfs.c +++ b/drivers/pci/controller/dwc/pcie-designware-debugfs.c @@ -865,7 +865,7 @@ static bool dw_pcie_ptm_t4_visible(void *drvdata) return pci->mode == DW_PCIE_EP_TYPE; } -const struct pcie_ptm_ops dw_pcie_ptm_ops = { +static const struct pcie_ptm_ops dw_pcie_ptm_ops = { .check_capability = dw_pcie_ptm_check_capability, .context_update_write = dw_pcie_ptm_context_update_write, .context_update_read = dw_pcie_ptm_context_update_read,