Skip to contentSkip to conversation

ARM: OMAP2+: fix missing variable declaration

PATCH In review Arnd Bergmann 4 participants 4 messages Aug 23, 2017 – Aug 24, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP2+: fix missing variable declaration

The function that was added doesn't actually build:

arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in this function)

This adds a declaration for 'r' to fix it.

Fixes 5ce783025c82 ("ARM: OMAP2+: Don't register omapdss device for omapdrm")
---
 arch/arm/mach-omap2/display.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-omap2/display.c +1 -0
index 798fc718fffe..b3f6eb5d04a2 100644
@@ -172,6 +172,7 @@ static int __init omapdss_init_fbdev(void)
 		.set_min_bus_tput = omap_dss_set_min_bus_tput,
 	};
 	struct device_node *node;
+	int r;
 
 	board_data.version = omap_display_get_version();
 	if (board_data.version == OMAPDSS_VER_UNKNOWN) {
Signature · 1 line
2.9.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Arnd,

Quoted 11 lines · On Wednesday, 23 August 2017 16:28:19 EEST Arnd Bergmann wrote:

The function that was added doesn't actually build:

arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in this function)

This adds a declaration for 'r' to fix it.

Fixes 5ce783025c82 ("ARM: OMAP2+: Don't register omapdss device for

omapdrm")

Looks like I haven't tested the patch with CONFIG_FB_OMAP2 enabled after the last rebase. I'm very sorry about that :-(

Tomi, I assume you will pick this up and sent it to Dave for v4.14-rc1.

Quoted 16 lines
---
 arch/arm/mach-omap2/display.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-omap2/display.c +1 -0
index 798fc718fffe..b3f6eb5d04a2 100644
@@ -172,6 +172,7 @@ static int __init omapdss_init_fbdev(void)
 		.set_min_bus_tput = omap_dss_set_min_bus_tput,
 	};
 	struct device_node *node;
+	int r;
 
 	board_data.version = omap_display_get_version();
 	if (board_data.version == OMAPDSS_VER_UNKNOWN) {
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer Acked-by
#2 lore raw
Quoted 15 lines · Laurent Pinchart

Hi Arnd,

Quoted 11 lines · On Wednesday, 23 August 2017 16:28:19 EEST Arnd Bergmann wrote:

The function that was added doesn't actually build:

arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in this function)

This adds a declaration for 'r' to fix it.

Fixes 5ce783025c82 ("ARM: OMAP2+: Don't register omapdss device for

omapdrm")

Quoted 6 lines

Looks like I haven't tested the patch with CONFIG_FB_OMAP2 enabled after the last rebase. I'm very sorry about that :-(

Tomi, I assume you will pick this up and sent it to Dave for v4.14-rc1.

#3 lore raw
In reply to Laurent Pinchart

?

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 15 lines · Laurent Pinchart

Hi Arnd,

Quoted 11 lines · On Wednesday, 23 August 2017 16:28:19 EEST Arnd Bergmann wrote:

The function that was added doesn't actually build:

arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first use in this function)

This adds a declaration for 'r' to fix it.

Fixes 5ce783025c82 ("ARM: OMAP2+: Don't register omapdss device for

omapdrm")

Quoted 6 lines

Looks like I haven't tested the patch with CONFIG_FB_OMAP2 enabled after the last rebase. I'm very sorry about that :-(

Tomi, I assume you will pick this up and sent it to Dave for v4.14-rc1.

Yep, I'll pick it up. I could swear I tested omapfb build, but... Obviously not.

Tomi