105-v5.17-PCI-mt7621-Remove-unused-function-pcie_rmw.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From: Sergio Paracuellos <[email protected]>
  2. Date: Mon, 24 Jan 2022 12:30:03 +0100
  3. Subject: [PATCH] PCI: mt7621: Remove unused function pcie_rmw()
  4. Function pcie_rmw() is not being used at all and can be deleted. Hence get
  5. rid of it, which fixes this warning:
  6. drivers/pci/controller/pcie-mt7621.c:112:20: warning: unused function 'pcie_rmw' [-Wunused-function]
  7. Fixes: 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver")
  8. Link: https://lore.kernel.org/r/[email protected]
  9. Link: https://lore.kernel.org/all/[email protected]/
  10. Reported-by: kernel test robot <[email protected]>
  11. Signed-off-by: Sergio Paracuellos <[email protected]>
  12. Signed-off-by: Bjorn Helgaas <[email protected]>
  13. ---
  14. --- a/drivers/pci/controller/pcie-mt7621.c
  15. +++ b/drivers/pci/controller/pcie-mt7621.c
  16. @@ -109,15 +109,6 @@ static inline void pcie_write(struct mt7
  17. writel_relaxed(val, pcie->base + reg);
  18. }
  19. -static inline void pcie_rmw(struct mt7621_pcie *pcie, u32 reg, u32 clr, u32 set)
  20. -{
  21. - u32 val = readl_relaxed(pcie->base + reg);
  22. -
  23. - val &= ~clr;
  24. - val |= set;
  25. - writel_relaxed(val, pcie->base + reg);
  26. -}
  27. -
  28. static inline u32 pcie_port_read(struct mt7621_pcie_port *port, u32 reg)
  29. {
  30. return readl_relaxed(port->base + reg);