[Linux-ia64] [Patch] Fix in printk.c

From: Siddha, Suresh B <suresh.b.siddha_at_intel.com>
Date: 2003-01-18 12:15:39
c99 specifies

<snip>
       [#7] If, within a  translation  unit,  the  same  identifier
       appears   with  both  internal  and  external  linkage,  the
       behavior is undefined.
</snip>

"early_printk" has this type of behaviour in printk.c. Attached/appended patch removes the dependency on the behaviour of the compiler.

thanks,
suresh

diff -Nru linux-2.5.52/kernel/printk.c~ linux-2.5.52/kernel/printk.c
--- linux-2.5.52/kernel/printk.c~	Fri Jan 17 14:53:30 2003
+++ linux-2.5.52/kernel/printk.c	Fri Jan 17 14:53:37 2003
@@ -329,7 +329,7 @@
 	}
 #ifdef CONFIG_IA64_EARLY_PRINTK
 	if (!console_drivers) {
-		static void early_printk (const char *str, size_t len);
+		void early_printk (const char *str, size_t len);
 		early_printk(&LOG_BUF(start), end - start);
 	}
 #endif




Received on Fri Jan 17 17:15:41 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST