Skip to contentSkip to conversation

staging: imx-drm: imx-tve: Fix a sparse warning

PATCH Superseded Liu Ying 2 participants 2 messages Dec 22, 2013 – Dec 23, 2013

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Liu Ying

author
#0 lore raw

PATCH 1/1 staging: imx-drm: imx-tve: Fix a sparse warning

This patch declares the function of_get_tve_mode as a static one to fix this sparse warning:
drivers/staging/imx-drm/imx-tve.c:563:11: warning: \
symbol 'of_get_tve_mode' was not declared. \
Should it be static?

---
 drivers/staging/imx-drm/imx-tve.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/imx-drm/imx-tve.c +1 -1
index 2c44fef..9abc7ca 100644
@@ -560,7 +560,7 @@ static const char *imx_tve_modes[] = {
 	[TVE_MODE_VGA] = "vga",
 };
 
-const int of_get_tve_mode(struct device_node *np)
+static const int of_get_tve_mode(struct device_node *np)
 {
 	const char *bm;
 	int ret, i;
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Liu Ying

This patch declares the function of_get_tve_mode as a static one to fix this sparse warning:
drivers/staging/imx-drm/imx-tve.c:563:11: warning: \
symbol 'of_get_tve_mode' was not declared. \
Should it be static?

Quoted 21 lines
---
 drivers/staging/imx-drm/imx-tve.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/imx-drm/imx-tve.c +1 -1
index 2c44fef..9abc7ca 100644
@@ -560,7 +560,7 @@ static const char *imx_tve_modes[] = {
 	[TVE_MODE_VGA] = "vga",
 };
 
-const int of_get_tve_mode(struct device_node *np)
+static const int of_get_tve_mode(struct device_node *np)
 {
 	const char *bm;
 	int ret, i;
Signature · 1 line
1.7.9.5