Skip to contentSkip to conversation

spi: spi-cadence-quadspi: Fix missing unwind goto warnings

PATCH Superseded Dhruva Gole 2 participants 3 messages Sep 15, 2023 SPI

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spi-cadence-quadspi: Fix missing unwind goto warnings

Fix the smatch warnings that were recently introduced in the runtime pm patch [0]:
drivers/spi/spi-cadence-quadspi.c:1882 cqspi_probe() warn: missing unwind goto?

[0] https://lore.kernel.org/all/[email protected]/

---

Tested locally using the following cmd:
make -j32 ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- drivers/spi/spi-cadence-quadspi.o CHECK="smatch -p=kernel" C=1 W=1

 drivers/spi/spi-cadence-quadspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-cadence-quadspi.c +1 -1
index 4828da4587c5..e04f257c1067 100644
@@ -1879,7 +1879,7 @@ static int cqspi_probe(struct platform_device *pdev)
 
 	ret = devm_pm_runtime_enable(dev);
 	if (ret)
-		return ret;
+		goto probe_setup_failed;
 
 	pm_runtime_set_autosuspend_delay(dev, CQSPI_AUTOSUSPEND_TIMEOUT);
 	pm_runtime_use_autosuspend(dev);
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 6 lines · Dhruva Gole

Fix the smatch warnings that were recently introduced in the runtime pm patch [0]:
drivers/spi/spi-cadence-quadspi.c:1882 cqspi_probe() warn: missing unwind goto?

[0] https://lore.kernel.org/all/[email protected]/

Please use normal fixes tags for things like this and in general please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access. I do frequently catch up on my mail on trains or flights, or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.

#2 lore raw
Quoted 9 lines · Mark Brown
Quoted 6 lines · Dhruva Gole

Fix the smatch warnings that were recently introduced in the runtime pm patch [0]:
drivers/spi/spi-cadence-quadspi.c:1882 cqspi_probe() warn: missing unwind goto?

[0] https://lore.kernel.org/all/[email protected]/

Please use normal fixes tags for things like this and in general

OK, I will resend with fixes tag.

Quoted 6 lines

please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access. I do frequently catch up on my mail on trains or flights, or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.

Will keep this in mind!

Also, I think a better fix will do, as I just noticed I am not really doing a dma_release_channel in this path although I got rid of the warning.

Signature · 2 lines
Best regards,
Dhruva Gole <[email protected]>