[TRIVIAL] Fix CON_BUF_SIZE usage
From: Matt Mackall (mpm_at_selenic.com)
Date: 07/31/04
- Previous message: Jesse Barnes: "Re: [Lse-tech] [RFC][PATCH] Change pcibus_to_cpumask() to pcibus_to_node()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 17:32:46 -0500 To: linux-kernel <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Index: tiny/drivers/char/vt.c
===================================================================
--- tiny.orig/drivers/char/vt.c 2004-07-24 11:53:05.000000000 -0500
+++ tiny/drivers/char/vt.c 2004-07-27 17:02:56.000000000 -0500
@@ -1864,7 +1864,7 @@
* since console_init (and thus con_init) are called before any
* kernel memory allocation is available.
*/
-char con_buf[PAGE_SIZE];
+char con_buf[CON_BUF_SIZE];
DECLARE_MUTEX(con_buf_sem);
/* acquires console_sem */
Index: tiny/include/linux/vt_kern.h
===================================================================
--- tiny.orig/include/linux/vt_kern.h 2004-07-24 11:53:28.000000000 -0500
+++ tiny/include/linux/vt_kern.h 2004-07-27 17:04:34.000000000 -0500
@@ -89,8 +89,8 @@
* vc_screen.c shares this temporary buffer with the console write code so that
* we can easily avoid touching user space while holding the console spinlock.
*/
-extern char con_buf[PAGE_SIZE];
#define CON_BUF_SIZE PAGE_SIZE
+extern char con_buf[CON_BUF_SIZE];
extern struct semaphore con_buf_sem;
#endif /* _VT_KERN_H */
-- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Jesse Barnes: "Re: [Lse-tech] [RFC][PATCH] Change pcibus_to_cpumask() to pcibus_to_node()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: page fault scalability patch V11 [0/7]: overview
... you decrement one of the threads that shares the mm ... > and when mapping
a page you increment it. ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - Re: [linux-usb-devel] [PATCH 8/9] USB usbfs: missing lock in proc_getdriver
... > just a question of hygiene. ... If you are using a temporary buffer
I'd ... I'd prefer the first option your patch implemented. ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: [RFC][PATCH] O(1) Entitlement Based Scheduler
... > shares and eliminating the 1/420 limit in precision. ... the IA32 kernels
do not support 64 bit ... half life on some systems). ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel)