Skip to contentSkip to conversation

fimc-lite.c: compile warning indicates bug

DISCUSSION Hans Verkuil 2 participants 3 messages Jan 7, 2014 – Feb 10, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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_sd should 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

#2 lore raw
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_sd should 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