Skip to contentSkip to conversation

phy: qcom: qmp-pcie: drop unused reset names

PATCH In review Vinod Koul 2 participants 2 messages Oct 3 – Oct 7

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/1 phy: qcom: qmp-pcie: drop unused reset names

Commit e397c8507e36 ("phy: qcom: qmp-pcie: Add Nord Gen5x16 PCIe multi-PHY support") added a bunch of reset names, but also added two which are not being used.

This leads to compiler warnings:
drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c:750:27: error: ‘nord_pciephy_port_b_nocsr_reset_l’ defined but not used [-Werror=unused-const-variable=]

  750 | static const char * const nord_pciephy_port_b_nocsr_reset_l[] = {
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c:746:27: error: ‘nord_pciephy_port_a_nocsr_reset_l’ defined but not used [-Werror=unused-const-variable=]
  746 | static const char * const nord_pciephy_port_a_nocsr_reset_l[] = {
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Drop these

Fixes e397c8507e36 ("phy: qcom: qmp-pcie: Add Nord Gen5x16 PCIe multi-PHY support")
---
 drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c +0 -8
index f1267691bf32..7bc62a668d34 100644
@@ -743,14 +743,6 @@ static const char * const nord_pciephy_port_abcd_reset_l[] = {
 	"port_a", "port_b", "port_c", "port_d",
 };
 
-static const char * const nord_pciephy_port_a_nocsr_reset_l[] = {
-	"port_a_nocsr",
-};
-
-static const char * const nord_pciephy_port_b_nocsr_reset_l[] = {
-	"port_b_nocsr",
-};
-
 static const char * const nord_pciephy_port_c_nocsr_reset_l[] = {
 	"port_c_nocsr",
 };
Signature · 7 lines
2.53.0


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Vinod Koul

Commit e397c8507e36 ("phy: qcom: qmp-pcie: Add Nord Gen5x16 PCIe multi-PHY support") added a bunch of reset names, but also added two which are not being used.

This leads to compiler warnings:
drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c:750:27: error: ‘nord_pciephy_port_b_nocsr_reset_l’ defined but not used [-Werror=unused-const-variable=]

   750 | static const char * const nord_pciephy_port_b_nocsr_reset_l[] = {
       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c:746:27: error: ‘nord_pciephy_port_a_nocsr_reset_l’ defined but not used [-Werror=unused-const-variable=]
   746 | static const char * const nord_pciephy_port_a_nocsr_reset_l[] = {
       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 7 lines

Drop these

Fixes e397c8507e36 ("phy: qcom: qmp-pcie: Add Nord Gen5x16 PCIe multi-PHY support")
---
  drivers/phy/qualcomm/phy-qcom-qmp-pcie-multiphy.c | 8 --------
  1 file changed, 8 deletions(-)

Thanks,
Neil

Signature · 3 lines
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy