All of lore.kernel.org
 help / color / mirror / Atom feed
* + serial-fix-8250-early-console-setup.patch added to -mm tree
@ 2007-08-03 16:46 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-08-03 16:46 UTC (permalink / raw)
  To: mm-commits; +Cc: daniel.ritz-ml, daniel.ritz, yinghai.lu


The patch titled
     serial: fix 8250 early console setup
has been added to the -mm tree.  Its filename is
     serial-fix-8250-early-console-setup.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: serial: fix 8250 early console setup
From: Daniel Ritz <daniel.ritz-ml@swissonline.ch>

The early setup function serial8250_console_early_setup() can be called
from non __init code (eg.  hotpluggable serial ports like serial_cs) so
remove the __init from the call chain to avoid crashes.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/serial/8250.c       |    2 +-
 drivers/serial/8250_early.c |    2 +-
 kernel/printk.c             |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/serial/8250.c~serial-fix-8250-early-console-setup drivers/serial/8250.c
--- a/drivers/serial/8250.c~serial-fix-8250-early-console-setup
+++ a/drivers/serial/8250.c
@@ -2514,7 +2514,7 @@ static int __init serial8250_console_set
 	return uart_set_options(port, co, baud, parity, bits, flow);
 }
 
-static int __init serial8250_console_early_setup(void)
+static int serial8250_console_early_setup(void)
 {
 	return serial8250_find_port_for_earlycon();
 }
diff -puN drivers/serial/8250_early.c~serial-fix-8250-early-console-setup drivers/serial/8250_early.c
--- a/drivers/serial/8250_early.c~serial-fix-8250-early-console-setup
+++ a/drivers/serial/8250_early.c
@@ -227,7 +227,7 @@ int __init setup_early_serial8250_consol
 	return 0;
 }
 
-int __init serial8250_find_port_for_earlycon(void)
+int serial8250_find_port_for_earlycon(void)
 {
 	struct early_serial8250_device *device = &early_device;
 	struct uart_port *port = &device->port;
diff -puN kernel/printk.c~serial-fix-8250-early-console-setup kernel/printk.c
--- a/kernel/printk.c~serial-fix-8250-early-console-setup
+++ a/kernel/printk.c
@@ -732,7 +732,7 @@ int __init add_preferred_console(char *n
 	return 0;
 }
 
-int __init update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
+int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
 {
 	struct console_cmdline *c;
 	int i;
_

Patches currently in -mm which might be from daniel.ritz-ml@swissonline.ch are

origin.patch
serial-fix-8250-early-console-setup.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-03 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-03 16:46 + serial-fix-8250-early-console-setup.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.