Fix in printk.c
PATCH 1/1 Fix in printk.c
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
kernel/printk.c renamed from kernel/printk.c~ +1 -1
@@ -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
kernel/printk.c renamed from kernel/printk.c~ +1 -1
@@ -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