Skip to contentSkip to conversation

omap2/pm.c build errors

PATCH David Brownell 2 participants 3 messages Apr 16, 2008

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

arch/arm/mach-omap2/pm.c: In function 'pm_init_serial_console':
arch/arm/mach-omap2/pm.c:188: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:191: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:193: error: 'PM_WKEN2' undeclared (first use in this function) arch/arm/mach-omap2/pm.c:193: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/pm.c:193: error: for each function it appears in.) arch/arm/mach-omap2/pm.c:194: error: expected ';' before 'break'

... wasn't there a patch for this? That's with current GIT.

The "no semicolons after function calls" fix is obvious (and is also a "that patch was never build-tested), but WKEN2 is not quite clear (but see my guess below).

arch/arm/mach-omap2/pm.c +3 -3
@@ -184,13 +184,13 @@ static void pm_init_serial_console(void)
 	}
 	switch (serial_console_uart) {
 	case 1:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1);
 		break;
 	case 2:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1);
 		break;
 	case 3:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, PM_WKEN2)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, OMAP24XX_PM_WKEN2);
 		break;
 	}
 }
maintainer
#1 lore raw
Quoted 10 lines · David Brownell

arch/arm/mach-omap2/pm.c: In function 'pm_init_serial_console':
arch/arm/mach-omap2/pm.c:188: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:191: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:193: error: 'PM_WKEN2' undeclared (first use in this function) arch/arm/mach-omap2/pm.c:193: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/pm.c:193: error: for each function it appears in.) arch/arm/mach-omap2/pm.c:194: error: expected ';' before 'break'

... wasn't there a patch for this? That's with current GIT.

Hmmm, I don't think so.

Quoted 3 lines

The "no semicolons after function calls" fix is obvious (and is also a "that patch was never build-tested), but WKEN2 is not quite clear (but see my guess below).

Heh, this looks easy to miss as it's behind CONFIG_PM_DEBUG :)

FYI, the PM code will be split to common pm.c and pm24xx.c and pm34xx.c most likely. Then all the serial PM debug code will get moved to serial driver.

Care to S-o-b: this patch?

Tony

Quoted 26 lines
arch/arm/mach-omap2/pm.c +3 -4
@@ -184,13 +184,13 @@ static void pm_init_serial_console(void)
 	}
 	switch (serial_console_uart) {
 	case 1:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1);
 		break;
 	case 2:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1);
 		break;
 	case 3:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, PM_WKEN2)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, OMAP24XX_PM_WKEN2);
 		break;
 	}
 }
 
--

To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw
Quoted 10 lines · Tony Lindgren
Quoted 9 lines · David Brownell

arch/arm/mach-omap2/pm.c: In function 'pm_init_serial_console':
arch/arm/mach-omap2/pm.c:188: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:191: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:193: error: 'PM_WKEN2' undeclared (first use in this function) arch/arm/mach-omap2/pm.c:193: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/pm.c:193: error: for each function it appears in.) arch/arm/mach-omap2/pm.c:194: error: expected ';' before 'break'

Quoted 3 lines
Quoted 1 line

... wasn't there a patch for this? That's with current GIT.

Hmmm, I don't think so.

Actually, yes, there's a patch from Hiroshi for this, will apply that one.

Quoted 44 lines
Quoted 3 lines

The "no semicolons after function calls" fix is obvious (and is also a "that patch was never build-tested), but WKEN2 is not quite clear (but see my guess below).

Heh, this looks easy to miss as it's behind CONFIG_PM_DEBUG :)

FYI, the PM code will be split to common pm.c and pm24xx.c and pm34xx.c most likely. Then all the serial PM debug code will get moved to serial driver.

Care to S-o-b: this patch?

Tony

Quoted 23 lines
arch/arm/mach-omap2/pm.c +3 -4
@@ -184,13 +184,13 @@ static void pm_init_serial_console(void)
 	}
 	switch (serial_console_uart) {
 	case 1:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1);
 		break;
 	case 2:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1);
 		break;
 	case 3:
-		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, PM_WKEN2)
+		prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, OMAP24XX_PM_WKEN2);
 		break;
 	}
 }
 
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html