The patch titled

     hvc_console: Statically initialize the vtermnos array

has been added to the -mm tree.  Its filename is

     hvc_console-statically-initialize-the-vtermnos-array.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

hvc_console-rearrange-code.patch
hvc_console-match-vio-and-console-devices-using-vterm-numbers.patch
hvc_console-dont-always-kick-the-poll-thread-in-interrupt.patch
hvc_console-magic_sysrq-should-only-be-on-console-channel.patch
hvc_console-unregister-the-console-in-the-exit-routine.patch
hvc_console-add-missing-include.patch
hvc_console-remove-num_vterms-and-some-dead-code.patch
hvc_console-statically-initialize-the-vtermnos-array.patch
hvc_console-add-some-sanity-checks.patch
hvc_console-separate-hvc_console-and-vio-code.patch
hvc_console-separate-hvc_console-and-vio-code-2.patch
hvc_console-register-ops-when-setting-up-hvc_console.patch
hvc_console-separate-the-nul-character-filtering-from-get_hvc_chars.patch
hvc_console-use-hvc_get_chars-in-hvsi-code.patch



From: Milton Miller <[EMAIL PROTECTED]>

Statically initialize the vtermnos array.

Signed-off-by: Milton Miller <[EMAIL PROTECTED]>
Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/char/hvc_console.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff -puN 
drivers/char/hvc_console.c~hvc_console-statically-initialize-the-vtermnos-array 
drivers/char/hvc_console.c
--- 
25/drivers/char/hvc_console.c~hvc_console-statically-initialize-the-vtermnos-array
  Wed Jul  6 14:00:33 2005
+++ 25-akpm/drivers/char/hvc_console.c  Wed Jul  6 14:00:33 2005
@@ -144,8 +144,8 @@ struct hvc_struct *hvc_get_by_index(int 
  * console interfaces but can still be used as a tty device.  This has to be
  * static because kmalloc will not work during early console init.
  */
-static uint32_t vtermnos[MAX_NR_HVC_CONSOLES];
-
+static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] =
+       {[0 ... MAX_NR_HVC_CONSOLES - 1] = -1};
 
 /*
  * Console APIs, NOT TTY.  These APIs are available immediately when
@@ -213,10 +213,6 @@ struct console hvc_con_driver = {
 /* Early console initialization.  Preceeds driver initialization. */
 static int __init hvc_console_init(void)
 {
-       int i;
-
-       for (i=0; i<MAX_NR_HVC_CONSOLES; i++)
-               vtermnos[i] = -1;
        hvc_find_vtys();
        register_console(&hvc_con_driver);
        return 0;
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to