vt: vt_kern.h, remove extern from functions
Unify the declarations of functions in vt_kern.h: some are with extern, some are not. Remove extern from the former as it is not needed for functions. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200219073951.16151-7-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f400991bf8
commit
a10df4910c
|
@ -28,8 +28,9 @@
|
||||||
#define BROKEN_GRAPHICS_PROGRAMS 1
|
#define BROKEN_GRAPHICS_PROGRAMS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void kd_mksound(unsigned int hz, unsigned int ticks);
|
void kd_mksound(unsigned int hz, unsigned int ticks);
|
||||||
extern int kbd_rate(struct kbd_repeat *rep);
|
int kbd_rate(struct kbd_repeat *rep);
|
||||||
|
|
||||||
extern int fg_console, last_console, want_console;
|
extern int fg_console, last_console, want_console;
|
||||||
|
|
||||||
/* console.c */
|
/* console.c */
|
||||||
|
@ -131,8 +132,8 @@ void vt_event_post(unsigned int event, unsigned int old, unsigned int new);
|
||||||
int vt_waitactive(int n);
|
int vt_waitactive(int n);
|
||||||
void change_console(struct vc_data *new_vc);
|
void change_console(struct vc_data *new_vc);
|
||||||
void reset_vc(struct vc_data *vc);
|
void reset_vc(struct vc_data *vc);
|
||||||
extern int do_unbind_con_driver(const struct consw *csw, int first, int last,
|
int do_unbind_con_driver(const struct consw *csw, int first, int last,
|
||||||
int deflt);
|
int deflt);
|
||||||
int vty_init(const struct file_operations *console_fops);
|
int vty_init(const struct file_operations *console_fops);
|
||||||
|
|
||||||
extern bool vt_dont_switch;
|
extern bool vt_dont_switch;
|
||||||
|
@ -146,7 +147,7 @@ struct vt_spawn_console {
|
||||||
};
|
};
|
||||||
extern struct vt_spawn_console vt_spawn_con;
|
extern struct vt_spawn_console vt_spawn_con;
|
||||||
|
|
||||||
extern int vt_move_to_console(unsigned int vt, int alloc);
|
int vt_move_to_console(unsigned int vt, int alloc);
|
||||||
|
|
||||||
/* Interfaces for VC notification of character events (for accessibility etc) */
|
/* Interfaces for VC notification of character events (for accessibility etc) */
|
||||||
|
|
||||||
|
@ -155,35 +156,34 @@ struct vt_notifier_param {
|
||||||
unsigned int c; /* Printed char */
|
unsigned int c; /* Printed char */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int register_vt_notifier(struct notifier_block *nb);
|
int register_vt_notifier(struct notifier_block *nb);
|
||||||
extern int unregister_vt_notifier(struct notifier_block *nb);
|
int unregister_vt_notifier(struct notifier_block *nb);
|
||||||
|
|
||||||
extern void hide_boot_cursor(bool hide);
|
void hide_boot_cursor(bool hide);
|
||||||
|
|
||||||
/* keyboard provided interfaces */
|
/* keyboard provided interfaces */
|
||||||
extern int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
|
int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
|
||||||
extern int vt_do_kdskbmode(int console, unsigned int arg);
|
int vt_do_kdskbmode(int console, unsigned int arg);
|
||||||
extern int vt_do_kdskbmeta(int console, unsigned int arg);
|
int vt_do_kdskbmeta(int console, unsigned int arg);
|
||||||
extern int vt_do_kbkeycode_ioctl(int cmd, struct kbkeycode __user *user_kbkc,
|
int vt_do_kbkeycode_ioctl(int cmd, struct kbkeycode __user *user_kbkc,
|
||||||
int perm);
|
int perm);
|
||||||
extern int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe,
|
int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
|
||||||
int perm, int console);
|
int console);
|
||||||
extern int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb,
|
int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm);
|
||||||
int perm);
|
int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
|
||||||
extern int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
|
int vt_do_kdgkbmode(int console);
|
||||||
extern int vt_do_kdgkbmode(int console);
|
int vt_do_kdgkbmeta(int console);
|
||||||
extern int vt_do_kdgkbmeta(int console);
|
void vt_reset_unicode(int console);
|
||||||
extern void vt_reset_unicode(int console);
|
int vt_get_shift_state(void);
|
||||||
extern int vt_get_shift_state(void);
|
void vt_reset_keyboard(int console);
|
||||||
extern void vt_reset_keyboard(int console);
|
int vt_get_leds(int console, int flag);
|
||||||
extern int vt_get_leds(int console, int flag);
|
int vt_get_kbd_mode_bit(int console, int bit);
|
||||||
extern int vt_get_kbd_mode_bit(int console, int bit);
|
void vt_set_kbd_mode_bit(int console, int bit);
|
||||||
extern void vt_set_kbd_mode_bit(int console, int bit);
|
void vt_clr_kbd_mode_bit(int console, int bit);
|
||||||
extern void vt_clr_kbd_mode_bit(int console, int bit);
|
void vt_set_led_state(int console, int leds);
|
||||||
extern void vt_set_led_state(int console, int leds);
|
void vt_set_led_state(int console, int leds);
|
||||||
extern void vt_set_led_state(int console, int leds);
|
void vt_kbd_con_start(int console);
|
||||||
extern void vt_kbd_con_start(int console);
|
void vt_kbd_con_stop(int console);
|
||||||
extern void vt_kbd_con_stop(int console);
|
|
||||||
|
|
||||||
void vc_scrolldelta_helper(struct vc_data *c, int lines,
|
void vc_scrolldelta_helper(struct vc_data *c, int lines,
|
||||||
unsigned int rolled_over, void *_base, unsigned int size);
|
unsigned int rolled_over, void *_base, unsigned int size);
|
||||||
|
|
Loading…
Reference in New Issue