diff options
-rw-r--r-- | arch/ia64/kernel/head.S | 1 | ||||
-rw-r--r-- | arch/ia64/kernel/head.h | 1 | ||||
-rw-r--r-- | arch/ia64/kernel/process.c | 7 | ||||
-rw-r--r-- | drivers/char/serial167.c | 5 | ||||
-rw-r--r-- | include/linux/dtlk.h | 19 | ||||
-rw-r--r-- | include/linux/tty.h | 4 | ||||
-rw-r--r-- | kernel/printk.c | 6 |
7 files changed, 11 insertions, 32 deletions
diff --git a/arch/ia64/kernel/head.S b/arch/ia64/kernel/head.S index 23f846de62d5..e6c5c3d5e1f8 100644 --- a/arch/ia64/kernel/head.S +++ b/arch/ia64/kernel/head.S | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/mca_asm.h> | 34 | #include <asm/mca_asm.h> |
35 | #include <linux/init.h> | 35 | #include <linux/init.h> |
36 | #include <linux/linkage.h> | 36 | #include <linux/linkage.h> |
37 | #include "head.h" | ||
37 | 38 | ||
38 | #ifdef CONFIG_HOTPLUG_CPU | 39 | #ifdef CONFIG_HOTPLUG_CPU |
39 | #define SAL_PSR_BITS_TO_SET \ | 40 | #define SAL_PSR_BITS_TO_SET \ |
diff --git a/arch/ia64/kernel/head.h b/arch/ia64/kernel/head.h new file mode 100644 index 000000000000..2e2ac6824e65 --- /dev/null +++ b/arch/ia64/kernel/head.h | |||
@@ -0,0 +1 @@ | |||
extern void console_print(const char *s); | |||
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 89969e950045..9bcec9945c12 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
@@ -161,6 +161,13 @@ show_regs (struct pt_regs *regs) | |||
161 | show_stack(NULL, NULL); | 161 | show_stack(NULL, NULL); |
162 | } | 162 | } |
163 | 163 | ||
164 | /* local support for deprecated console_print */ | ||
165 | void | ||
166 | console_print(const char *s) | ||
167 | { | ||
168 | printk(KERN_EMERG "%s", s); | ||
169 | } | ||
170 | |||
164 | void | 171 | void |
165 | do_notify_resume_user(sigset_t *unused, struct sigscratch *scr, long in_syscall) | 172 | do_notify_resume_user(sigset_t *unused, struct sigscratch *scr, long in_syscall) |
166 | { | 173 | { |
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index 51e7a46787be..5942a9d674c0 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -171,7 +171,6 @@ static int startup(struct cyclades_port *); | |||
171 | static void cy_throttle(struct tty_struct *); | 171 | static void cy_throttle(struct tty_struct *); |
172 | static void cy_unthrottle(struct tty_struct *); | 172 | static void cy_unthrottle(struct tty_struct *); |
173 | static void config_setup(struct cyclades_port *); | 173 | static void config_setup(struct cyclades_port *); |
174 | extern void console_print(const char *); | ||
175 | #ifdef CYCLOM_SHOW_STATUS | 174 | #ifdef CYCLOM_SHOW_STATUS |
176 | static void show_status(int); | 175 | static void show_status(int); |
177 | #endif | 176 | #endif |
@@ -245,7 +244,7 @@ void SP(char *data) | |||
245 | { | 244 | { |
246 | unsigned long flags; | 245 | unsigned long flags; |
247 | local_irq_save(flags); | 246 | local_irq_save(flags); |
248 | console_print(data); | 247 | printk(KERN_EMERG "%s", data); |
249 | local_irq_restore(flags); | 248 | local_irq_restore(flags); |
250 | } | 249 | } |
251 | 250 | ||
@@ -255,7 +254,7 @@ void CP(char data) | |||
255 | unsigned long flags; | 254 | unsigned long flags; |
256 | local_irq_save(flags); | 255 | local_irq_save(flags); |
257 | scrn[0] = data; | 256 | scrn[0] = data; |
258 | console_print(scrn); | 257 | printk(KERN_EMERG "%c", scrn); |
259 | local_irq_restore(flags); | 258 | local_irq_restore(flags); |
260 | } /* CP */ | 259 | } /* CP */ |
261 | 260 | ||
diff --git a/include/linux/dtlk.h b/include/linux/dtlk.h index 2896d90118a9..22a7b9a5f5d1 100644 --- a/include/linux/dtlk.h +++ b/include/linux/dtlk.h | |||
@@ -1,22 +1,3 @@ | |||
1 | #if 0 | ||
2 | |||
3 | #define TRACE_TXT(text) \ | ||
4 | { \ | ||
5 | if(dtlk_trace) \ | ||
6 | { \ | ||
7 | console_print(text); \ | ||
8 | console_print("\n"); \ | ||
9 | } \ | ||
10 | } | ||
11 | |||
12 | #define TRACE_CHR(chr) \ | ||
13 | { \ | ||
14 | if(dtlk_trace) \ | ||
15 | console_print(chr); \ | ||
16 | } \ | ||
17 | |||
18 | #endif | ||
19 | |||
20 | #define DTLK_MINOR 0 | 1 | #define DTLK_MINOR 0 |
21 | #define DTLK_IO_EXTENT 0x02 | 2 | #define DTLK_IO_EXTENT 0x02 |
22 | 3 | ||
diff --git a/include/linux/tty.h b/include/linux/tty.h index 0d3974f59c53..a916a318004e 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -519,10 +519,6 @@ extern void serial_console_init(void); | |||
519 | 519 | ||
520 | extern int pcxe_open(struct tty_struct *tty, struct file *filp); | 520 | extern int pcxe_open(struct tty_struct *tty, struct file *filp); |
521 | 521 | ||
522 | /* printk.c */ | ||
523 | |||
524 | extern void console_print(const char *); | ||
525 | |||
526 | /* vt.c */ | 522 | /* vt.c */ |
527 | 523 | ||
528 | extern int vt_ioctl(struct tty_struct *tty, struct file *file, | 524 | extern int vt_ioctl(struct tty_struct *tty, struct file *file, |
diff --git a/kernel/printk.c b/kernel/printk.c index e10d193a833a..602033acd6c7 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -1075,12 +1075,6 @@ void __sched console_conditional_schedule(void) | |||
1075 | } | 1075 | } |
1076 | EXPORT_SYMBOL(console_conditional_schedule); | 1076 | EXPORT_SYMBOL(console_conditional_schedule); |
1077 | 1077 | ||
1078 | void console_print(const char *s) | ||
1079 | { | ||
1080 | printk(KERN_EMERG "%s", s); | ||
1081 | } | ||
1082 | EXPORT_SYMBOL(console_print); | ||
1083 | |||
1084 | void console_unblank(void) | 1078 | void console_unblank(void) |
1085 | { | 1079 | { |
1086 | struct console *c; | 1080 | struct console *c; |