Skip to contentSkip to conversation

PCI: rzg3s-host: Fix compilation warning

PATCH claudiu beznea 2 participants 3 messages Oct 2 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

I realized just before sending this patch: the v2 should not be in the patch title. Please let me know how would you prefer to handle it.

Thank you,
Claudiu

Quoted 48 lines · claudiu beznea via lists.cip-project.org

From: Claudiu Beznea <[email protected]>

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;
       |  ^~~~~~

With it dropped extra ';' at the end of the moved line.

Fixes c5249a6594d6 ("PCI: Add Renesas RZ/G3S host controller driver")

---

Changes in v2:
- dropped extra ';' and updated patch description

  drivers/pci/controller/pcie-rzg3s-host.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/pcie-rzg3s-host.c +2 -3
index 987015e8ec9b..010b6747a0aa 100644
@@ -1553,10 +1553,10 @@ static int rzg3s_pcie_probe(struct platform_device *pdev)
  	struct pci_host_bridge *bridge;
  	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);;
  	struct rzg3s_pcie_host *host;
  	int ret;
+	struct device_node *sysc_np __free(device_node) =
+		of_parse_phandle(np, "renesas,sysc", 0);
 
  	bridge = devm_pci_alloc_host_bridge(dev, sizeof(*host));
  	if (!bridge)
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#24417): https://lists.cip-project.org/g/cip-dev/message/24417
Mute This Topic: https://lists.cip-project.org/mt/121546794/8377987
Group Owner: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 3 lines · claudiu beznea via lists.cip-project.org

Hi,

I realized just before sending this patch: the v2 should not be in the patch

s/before/after

Quoted 57 lines

title. Please let me know how would you prefer to handle it.

Thank you,
Claudiu

Quoted 31 lines · claudiu beznea via lists.cip-project.org

From: Claudiu Beznea <[email protected]>

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;
       |  ^~~~~~

With it dropped extra ';' at the end of the moved line.

Fixes c5249a6594d6 ("PCI: Add Renesas RZ/G3S host controller driver")

---

Changes in v2:
- dropped extra ';' and updated patch description

  drivers/pci/controller/pcie-rzg3s-host.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/pcie-rzg3s-host.c +0 -0
index 987015e8ec9b..010b6747a0aa 100644
@@ -1553,10 +1553,10 @@ static int rzg3s_pcie_probe(struct platform_device *pdev)
       struct pci_host_bridge *bridge;
       struct device *dev = &pdev->dev;

drivers/pci/controller/pcie-rzg3s-host.c static int rzg3s_pcie_probe(struct platform_device *pdev) · line 1562

Quoted 10 lines
drivers/pci/controller/pcie-rzg3s-host.c +2 -2
       struct device_node *np = dev->of_node;
-    struct device_node *sysc_np __free(device_node) =
-        of_parse_phandle(np, "renesas,sysc", 0);;
       struct rzg3s_pcie_host *host;
       int ret;
+    struct device_node *sysc_np __free(device_node) =
+        of_parse_phandle(np, "renesas,sysc", 0);
       bridge = devm_pci_alloc_host_bridge(dev, sizeof(*host));
       if (!bridge)
 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#24418): https://lists.cip-project.org/g/cip-dev/message/24418
Mute This Topic: https://lists.cip-project.org/mt/121546794/8377987
Group Owner: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 9 lines · claudiu beznea
Quoted 4 lines · claudiu beznea via lists.cip-project.org

Hi,

I realized just before sending this patch: the v2 should not be in the patch

s/before/after

:-).

Quoted 1 line
Quoted 1 line

title. Please let me know how would you prefer to handle it.

...

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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;
       |  ^~~~~~

With it dropped extra ';' at the end of the moved line.

Why are you moving the line in the first place? Drop the extra ';' and warning should go away.

Best regards,
Pavel