fimc-lite.c: compile warning indicates bug
Hi Sylwester,
I just did a quick build with the latest set of commits and I found this warning:
.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c: In function 'fimc_lite_probe':.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c:1583:1: warning: label 'err_sd' defined but not used [-Wunused-label]
err_sd:
^
As far as I can tell err_sd should certainly be used to do proper cleanup. Can you check the code and prepare a patch?
Thanks!
Hans
Hi Hans,
Quoted 5 lines · Hans Verkuil
Hi Sylwester,
I just did a quick build with the latest set of commits and I found this warning:
Quoted 7 lines
.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c: In function 'fimc_lite_probe':.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c:1583:1: warning: label 'err_sd' defined but not used [-Wunused-label]
err_sd:
^As far as I can tell
err_sdshould certainly be used to do proper cleanup. Can you check the code and prepare a patch?
Yes, I also noticed it in the media daily builds. It's a rebase error, unfortunately the mainline driver is now far behind our internal code. I will prepare a patch to fix this as soon as possible.
Regards,
Sylwester
Quoted 13 lines · Sylwester Nawrocki
Hi Hans,
Quoted 10 lines · Hans Verkuil
Hi Sylwester,
I just did a quick build with the latest set of commits and I found this warning:
.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c: In function 'fimc_lite_probe':.../media-git/drivers/media/platform/exynos4-is/fimc-lite.c:1583:1: warning: label 'err_sd' defined but not used [-Wunused-label]
err_sd:
^
Quoted 6 lines
Quoted 2 lines
As far as I can tell
err_sdshould certainly be used to do proper cleanup. Can you check the code and prepare a patch?Yes, I also noticed it in the media daily builds. It's a rebase error, unfortunately the mainline driver is now far behind our internal code. I will prepare a patch to fix this as soon as possible.
This is now the only warning left. Did you post a patch and did I miss it?
Regards,
Hans