[PATCH] cpm_uart_core.c GCC4.x compilation fix

STALE7669d

2 messages, 2 authors, 2005-08-08 · open the first message on its own page

[PATCH] cpm_uart_core.c GCC4.x compilation fix

From: Schaefer-Hutter, Peter <hidden>
Date: 2005-08-08 13:57:00

cpm_uart_core.c: needs some love to compile with GCC4.0.1.

Signed-off-by: Peter Schaefer-Hutter
[off-list ref]
--- a/drivers/serial/cpm_uart/cpm_uart_core.c	2005-08-08
15:49:16.725292392 +0200
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c	2005-08-08
15:33:47.691526992 +0200
@@ -1134,14 +1134,14 @@
 	return 0;
 }

-extern struct uart_driver cpm_reg;
+static struct uart_driver cpm_reg;
 static struct console cpm_scc_uart_console =3D {
-	.name		"ttyCPM",
-	.write		cpm_uart_console_write,
-	.device		uart_console_device,
-	.setup		cpm_uart_console_setup,
-	.flags		CON_PRINTBUFFER,
-	.index		-1,
+	.name		=3D "ttyCPM",
+	.write		=3D cpm_uart_console_write,
+	.device		=3D uart_console_device,
+	.setup		=3D cpm_uart_console_setup,
+	.flags		=3D CON_PRINTBUFFER,
+	.index		=3D -1,
 	.data		=3D &cpm_reg,
 };
=20

Re: [PATCH] cpm_uart_core.c GCC4.x compilation fix

From: Kumar Gala <hidden>
Date: 2005-08-08 16:59:16

Peter,

Patch looks good.  Can't believe we lost the '=' in the  
initialization.  Will queue this up with a few other CPM_UART related  
patches.

- kumar

On Aug 8, 2005, at 8:57 AM, Schaefer-Hutter, Peter wrote:
quoted hunk
cpm_uart_core.c: needs some love to compile with GCC4.0.1.

Signed-off-by: Peter Schaefer-Hutter
[off-list ref]
--- a/drivers/serial/cpm_uart/cpm_uart_core.c    2005-08-08
15:49:16.725292392 +0200
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c    2005-08-08
15:33:47.691526992 +0200
@@ -1134,14 +1134,14 @@
     return 0;
 }

-extern struct uart_driver cpm_reg;
+static struct uart_driver cpm_reg;
 static struct console cpm_scc_uart_console = {
-    .name        "ttyCPM",
-    .write        cpm_uart_console_write,
-    .device        uart_console_device,
-    .setup        cpm_uart_console_setup,
-    .flags        CON_PRINTBUFFER,
-    .index        -1,
+    .name        = "ttyCPM",
+    .write        = cpm_uart_console_write,
+    .device        = uart_console_device,
+    .setup        = cpm_uart_console_setup,
+    .flags        = CON_PRINTBUFFER,
+    .index        = -1,
     .data        = &cpm_reg,
 };
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help