Skip to content

Commit c1dc61a

Browse files
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: 852a1fd ("PCI: dwc: Add debugfs support for PTM context") Reported-by: Bjorn Helgaas <helgaas@kernel.org> Closes: https://lore.kernel.org/linux-pci/20250617231210.GA1172093@bhelgaas Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20250701120856.15839-1-mani@kernel.org
1 parent 032f05b commit c1dc61a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-designware-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static bool dw_pcie_ptm_t4_visible(void *drvdata)
865865
return pci->mode == DW_PCIE_EP_TYPE;
866866
}
867867

868-
const struct pcie_ptm_ops dw_pcie_ptm_ops = {
868+
static const struct pcie_ptm_ops dw_pcie_ptm_ops = {
869869
.check_capability = dw_pcie_ptm_check_capability,
870870
.context_update_write = dw_pcie_ptm_context_update_write,
871871
.context_update_read = dw_pcie_ptm_context_update_read,

0 commit comments

Comments
 (0)