spi: spi-cadence-quadspi: Fix missing unwind goto warnings
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
@@ -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
Mark Brown
maintainerQuoted 6 lines · Dhruva Gole
Fix the smatch warnings that were recently introduced in the runtime pm patch [0]:
drivers/spi/spi-cadence-quadspi.c:1882cqspi_probe()warn: missing unwind goto?
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.
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:1882cqspi_probe()warn: missing unwind goto?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]>