CIP-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.10.y-cip v3] PCI: rzg3s-host: Fix compilation warning
@ 2026-10-02 14:11 Claudiu Beznea
  2026-10-13  4:52 ` nobuhiro.iwamatsu.x90
  0 siblings, 1 reply; 4+ messages in thread
From: Claudiu Beznea @ 2026-10-02 14:11 UTC (permalink / raw)
  To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev

From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

Fix the following compilation warning:

pcie_rzg3s_host.c: In function ‘rzg3s_pcie_probe’:
../drivers/pci/controller/pcie-rzg3s-host.c:1558:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 1558 |  struct rzg3s_pcie_host *host;
      |  ^~~~~~

Fixes: c5249a6594d6 ("PCI: Add Renesas RZ/G3S host controller driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---

Changes in v3:
- fixed it by dropping ';'

 drivers/pci/controller/pcie-rzg3s-host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c
index 987015e8ec9b..cac42fd8fc4a 100644
--- a/drivers/pci/controller/pcie-rzg3s-host.c
+++ b/drivers/pci/controller/pcie-rzg3s-host.c
@@ -1554,7 +1554,7 @@ static int rzg3s_pcie_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct device_node *np = dev->of_node;
 	struct device_node *sysc_np __free(device_node) =
-		of_parse_phandle(np, "renesas,sysc", 0);;
+		of_parse_phandle(np, "renesas,sysc", 0);
 	struct rzg3s_pcie_host *host;
 	int ret;
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-14  4:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 14:11 [PATCH 5.10.y-cip v3] PCI: rzg3s-host: Fix compilation warning Claudiu Beznea
2026-10-13  4:52 ` nobuhiro.iwamatsu.x90
2026-10-13 13:10   ` [cip-dev] " Pavel Machek
2026-10-14  4:45     ` nobuhiro.iwamatsu.x90

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox