Skip to content

Commit 3cb340e

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[PATCH] vt: proper prototypes for some console functions
This patch adds proper prototypes to header files for three console init functions used on drivers/char/vt.c Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 48afdf6 commit 3cb340e

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎drivers/char/vt.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,6 @@ const struct consw *conswitchp;
139139
extern void vcs_make_sysfs(struct tty_struct *tty);
140140
extern void vcs_remove_sysfs(struct tty_struct *tty);
141141

142-
extern void console_map_init(void);
143-
#ifdef CONFIG_PROM_CONSOLE
144-
extern void prom_con_init(void);
145-
#endif
146-
#ifdef CONFIG_MDA_CONSOLE
147-
extern int mda_console_init(void);
148-
#endif
149-
150142
struct vc vc_cons [MAX_NR_CONSOLES];
151143

152144
#ifndef VT_SINGLE_DRIVER

‎include/linux/console.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ static inline void suspend_console(void) {}
129129
static inline void resume_console(void) {}
130130
#endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */
131131

132+
int mda_console_init(void);
133+
void prom_con_init(void);
134+
132135
/* Some debug stub to catch some of the obvious races in the VT code */
133136
#if 1
134137
#define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() && !oops_in_progress)

‎include/linux/consolemap.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ struct vc_data;
1313
extern unsigned char inverse_translate(struct vc_data *conp, int glyph);
1414
extern unsigned short *set_translate(int m, struct vc_data *vc);
1515
extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
16+
void console_map_init(void);

0 commit comments

Comments
 (0)