media: tegra: Make tegra210_video_formats static
Subsystems (4)
PATCH 1/1 media: tegra: Make tegra210_video_formats static
Fix the following sparse warning:
drivers/staging/media/tegra-video/tegra210.c:589:33: warning: symbol 'tegra210_video_formats' was not declared.
The tegra210_video_formats has only call site within tegra210.c It should be static
--- drivers/staging/media/tegra-video/tegra210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/tegra-video/tegra210.c +1 -1
@@ -586,7 +586,7 @@ enum tegra210_image_format { }/* Tegra210 supported video formats */ -const struct tegra_video_format tegra210_video_formats[] = { +static const struct tegra_video_format tegra210_video_formats[] = {/* RAW 8 */ TEGRA210_VIDEO_FMT (RAW8 ,8 ,SRGGB8_1X8 ,1 ,T_L8 ,SRGGB8 ),TEGRA210_VIDEO_FMT (RAW8 ,8 ,SGRBG8_1X8 ,1 ,T_L8 ,SGRBG8 ),
Signature · 1 line
2.6.2
Quoted 7 lines · Samuel Zou
Fix the following sparse warning:
drivers/staging/media/tegra-video/tegra210.c:589:33: warning: symbol 'tegra210_video_formats' was not declared.The
tegra210_video_formatshas only call site withintegra210.cIt should be static
Quoted 6 lines
Fixes 423d10a99b30 ("media: tegra: Add Tegra210 Video input driver")Reported-by Hulk Robot<[email protected]>Signed-off-by Samuel Zou<[email protected]>--- drivers/staging/media/tegra-video/tegra210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thierry Reding
AppliedQuoted 7 lines · Samuel Zou
Fix the following sparse warning:
drivers/staging/media/tegra-video/tegra210.c:589:33: warning: symbol 'tegra210_video_formats' was not declared.The
tegra210_video_formatshas only call site withintegra210.cIt should be static
Quoted 6 lines
Fixes 423d10a99b30 ("media: tegra: Add Tegra210 Video input driver")Reported-by Hulk Robot <[email protected]>Signed-off-by Samuel Zou <[email protected]>--- drivers/staging/media/tegra-video/tegra210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry